Skip to content

Commit 59bab6a

Browse files
committed
feat(custom-issuer-go): add liveness/readiness probes & prometheus metrics annotations
1 parent f92a10f commit 59bab6a

1 file changed

Lines changed: 18 additions & 0 deletions

File tree

infra/chart/templates/custom-issuer-go.yaml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22
apiVersion: v1
33
kind: Service
44
metadata:
5+
annotations:
6+
prometheus.io/port: {{ .Values.customIssuerGo.service.targetPort | quote }}
7+
prometheus.io/scrape: "true"
8+
prometheus.io/path: "/metrics"
59
name: custom-issuer-go-{{ .Values.environment }}
610
namespace: {{ .Values.namespace }}
711
spec:
@@ -52,6 +56,20 @@ spec:
5256
cpu: {{ .Values.customIssuerGo.deployment.cpuLimit }}
5357
ports:
5458
- containerPort: {{ .Values.customIssuerGo.deployment.port }}
59+
livenessProbe:
60+
httpGet:
61+
path: /livez
62+
port: {{ .Values.customIssuerGo.deployment.port }}
63+
initialDelaySeconds: 10
64+
timeoutSeconds: 10
65+
periodSeconds: 30
66+
readinessProbe:
67+
httpGet:
68+
path: /readyz
69+
port: {{ .Values.customIssuerGo.deployment.port }}
70+
initialDelaySeconds: 10
71+
timeoutSeconds: 10
72+
periodSeconds: 30
5573
volumeMounts:
5674
- name: custom-issuer-go-secrets
5775
mountPath: "/mnt/secrets"

0 commit comments

Comments
 (0)