Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: add probes on all containers #234

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions deploy/charts/x509-certificate-exporter/templates/daemonset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -136,9 +136,21 @@ spec:
- {{ tpl (. | toYaml) $ | indent 10 | trim }}
{{- end }}
{{- if not $.Values.rbacProxy.enabled }}
livenessProbe:
httpGet:
path: /metrics
port: metrics
initialDelaySeconds: 5
periodSeconds: 3
ports:
- name: metrics
containerPort: {{ $.Values.podListenPort }}
readinessProbe:
httpGet:
path: /metrics
port: metrics
initialDelaySeconds: 5
periodSeconds: 3
{{- else }}
- name: kube-rbac-proxy
{{- with $.Values.rbacProxy.securityContext }}
Expand All @@ -157,9 +169,21 @@ spec:
valueFrom:
fieldRef:
fieldPath: status.podIP
livenessProbe:
httpGet:
path: /metrics
port: metrics
initialDelaySeconds: 5
periodSeconds: 3
ports:
- name: metrics
containerPort: {{ $.Values.podListenPort }}
readinessProbe:
httpGet:
path: /metrics
port: metrics
initialDelaySeconds: 5
periodSeconds: 3
{{- with $.Values.rbacProxy.resources }}
resources:
{{- . | toYaml | trim | nindent 10 }}
Expand Down
24 changes: 24 additions & 0 deletions deploy/charts/x509-certificate-exporter/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -133,9 +133,21 @@ spec:
{{- end }}
{{- if not .Values.rbacProxy.enabled }}
- --listen-address=:{{ .Values.podListenPort }}
livenessProbe:
httpGet:
path: /metrics
port: metrics
initialDelaySeconds: 5
periodSeconds: 3
ports:
- name: metrics
containerPort: {{ .Values.podListenPort }}
readinessProbe:
httpGet:
path: /metrics
port: metrics
initialDelaySeconds: 5
periodSeconds: 3
{{- else }}
- --listen-address=:{{ .Values.rbacProxy.upstreamListenPort }}
- name: kube-rbac-proxy
Expand All @@ -155,9 +167,21 @@ spec:
valueFrom:
fieldRef:
fieldPath: status.podIP
livenessProbe:
httpGet:
path: /metrics
port: metrics
initialDelaySeconds: 5
periodSeconds: 3
ports:
- name: metrics
containerPort: {{ .Values.podListenPort }}
readinessProbe:
httpGet:
path: /metrics
port: metrics
initialDelaySeconds: 5
periodSeconds: 3
{{- with .Values.rbacProxy.resources }}
resources:
{{- . | toYaml | trim | nindent 10 }}
Expand Down