Skip to content

Commit 2188f56

Browse files
committed
use named healthcheck port
1 parent 4732208 commit 2188f56

2 files changed

Lines changed: 11 additions & 5 deletions

File tree

deploy/helm-chart/kubernetes-secret-generator/templates/deployment.yaml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,16 +28,19 @@ spec:
2828
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
2929
imagePullPolicy: {{ .Values.image.pullPolicy }}
3030
args: {{ toYaml .Values.args | nindent 12 }}
31+
ports:
32+
- containerPort: 8080
33+
name: healthcheck
3134
livenessProbe:
3235
httpGet:
3336
path: /healthz
34-
port: 8080
37+
port: healthcheck
3538
initialDelaySeconds: 3
3639
periodSeconds: 3
3740
readinessProbe:
3841
httpGet:
3942
path: /readyz
40-
port: 8080
43+
port: healthcheck
4144
initialDelaySeconds: 3
4245
periodSeconds: 3
4346
env:
@@ -65,5 +68,5 @@ spec:
6568
{{- end }}
6669
{{- with .Values.tolerations }}
6770
tolerations:
68-
{{- toYaml . | nindent 8 }}
71+
{{- toYaml . | nindent 8 }}
6972
{{- end }}

deploy/operator.yaml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,16 +20,19 @@ spec:
2020
command:
2121
- kubernetes-secret-generator
2222
imagePullPolicy: Always
23+
ports:
24+
- containerPort: 8080
25+
name: healthcheck
2326
livenessProbe:
2427
httpGet:
2528
path: /healthz
26-
port: 8080
29+
port: healthcheck
2730
initialDelaySeconds: 3
2831
periodSeconds: 3
2932
readinessProbe:
3033
httpGet:
3134
path: /readyz
32-
port: 8080
35+
port: healthcheck
3336
initialDelaySeconds: 3
3437
periodSeconds: 3
3538
env:

0 commit comments

Comments
 (0)