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

feat: add liveness + readiness Probe to deployment #163

Merged
Show file tree
Hide file tree
Changes from all commits
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
13 changes: 12 additions & 1 deletion helm/cert-exporter/templates/cert-manager/cert-manager.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,23 @@ spec:
{{- end}}
ports:
- name: http
containerPort: 8080
containerPort: {{ .Values.certManager.containerPort }}
protocol: TCP
resources:
{{- toYaml .Values.certManager.resources | nindent 12 }}
volumeMounts:
{{- toYaml .Values.certManager.volumeMounts | nindent 12 }}
livenessProbe:
tcpSocket:
port: {{ .Values.certManager.containerPort }}
initialDelaySeconds: 10
periodSeconds: 10
readinessProbe:
httpGet:
path: /metrics
port: {{ .Values.certManager.containerPort }}
failureThreshold: 1
periodSeconds: 10
{{- with .Values.certManager.nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 8 }}
Expand Down
2 changes: 1 addition & 1 deletion helm/cert-exporter/templates/cert-manager/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@ spec:
ports:
- port: {{ .Values.service.port }}
name: {{ .Values.service.portName }}
targetPort: 8080
targetPort: {{ .Values.certManager.containerPort }}
selector:
{{ include "cert-exporter.certManagerSelectorLabels" . | nindent 6 }}
2 changes: 2 additions & 0 deletions helm/cert-exporter/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,8 @@ certManager:
# name: kubelet
# readOnly: true

containerPort: 8080

service:
type: ClusterIP
port: 8080
Expand Down
Loading