feat(libvirt-exporter): add readiness and liveness probes to sidecar container
Change-Id: I346e16406b27addb715c18e710e9ee721c056010 Signed-off-by: Saeed Padari <sam137115@gmail.com>
This commit is contained in:
@@ -20,6 +20,13 @@ exec:
|
|||||||
- /usr/bin/virsh connect
|
- /usr/bin/virsh connect
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
||||||
|
{{- define "libvirtExporterProbeTemplate" }}
|
||||||
|
httpGet:
|
||||||
|
path: /
|
||||||
|
port: metrics
|
||||||
|
scheme: HTTP
|
||||||
|
{{- end }}
|
||||||
|
|
||||||
{{- define "libvirt.daemonset" }}
|
{{- define "libvirt.daemonset" }}
|
||||||
{{- $daemonset := index . 0 }}
|
{{- $daemonset := index . 0 }}
|
||||||
{{- $configMapName := index . 1 }}
|
{{- $configMapName := index . 1 }}
|
||||||
@@ -312,16 +319,8 @@ spec:
|
|||||||
- name: metrics
|
- name: metrics
|
||||||
protocol: TCP
|
protocol: TCP
|
||||||
containerPort: {{ tuple "libvirt_exporter" "direct" "metrics" . | include "helm-toolkit.endpoints.endpoint_port_lookup" }}
|
containerPort: {{ tuple "libvirt_exporter" "direct" "metrics" . | include "helm-toolkit.endpoints.endpoint_port_lookup" }}
|
||||||
livenessProbe:
|
{{ dict "envAll" . "component" "libvirt" "container" "libvirt_exporter" "type" "readiness" "probeTemplate" (include "libvirtExporterProbeTemplate" . | fromYaml) | include "helm-toolkit.snippets.kubernetes_probe" | indent 10 }}
|
||||||
httpGet:
|
{{ dict "envAll" . "component" "libvirt" "container" "libvirt_exporter" "type" "liveness" "probeTemplate" (include "libvirtExporterProbeTemplate" . | fromYaml) | include "helm-toolkit.snippets.kubernetes_probe" | indent 10 }}
|
||||||
path: /
|
|
||||||
port: metrics
|
|
||||||
timeoutSeconds: 5
|
|
||||||
readinessProbe:
|
|
||||||
httpGet:
|
|
||||||
path: /
|
|
||||||
port: metrics
|
|
||||||
timeoutSeconds: 5
|
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: run
|
- name: run
|
||||||
mountPath: /run
|
mountPath: /run
|
||||||
|
@@ -262,6 +262,19 @@ pod:
|
|||||||
initialDelaySeconds: 15
|
initialDelaySeconds: 15
|
||||||
periodSeconds: 60
|
periodSeconds: 60
|
||||||
timeoutSeconds: 5
|
timeoutSeconds: 5
|
||||||
|
libvirt_exporter:
|
||||||
|
liveness:
|
||||||
|
enabled: true
|
||||||
|
params:
|
||||||
|
initialDelaySeconds: 30
|
||||||
|
periodSeconds: 60
|
||||||
|
timeoutSeconds: 5
|
||||||
|
readiness:
|
||||||
|
enabled: true
|
||||||
|
params:
|
||||||
|
initialDelaySeconds: 15
|
||||||
|
periodSeconds: 60
|
||||||
|
timeoutSeconds: 5
|
||||||
security_context:
|
security_context:
|
||||||
libvirt:
|
libvirt:
|
||||||
pod:
|
pod:
|
||||||
|
5
releasenotes/notes/libvirt-e8ba1d91a8ca4999.yaml
Normal file
5
releasenotes/notes/libvirt-e8ba1d91a8ca4999.yaml
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
fixes:
|
||||||
|
- |
|
||||||
|
Added readiness and liveness probes for the libvirt-exporter sidecar container.
|
||||||
|
...
|
Reference in New Issue
Block a user