Skip to content

Commit

Permalink
use named healthcheck port
Browse files Browse the repository at this point in the history
  • Loading branch information
hensur committed Apr 9, 2020
1 parent 4732208 commit 2188f56
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,16 +28,19 @@ spec:
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
imagePullPolicy: {{ .Values.image.pullPolicy }}
args: {{ toYaml .Values.args | nindent 12 }}
ports:
- containerPort: 8080
name: healthcheck
livenessProbe:
httpGet:
path: /healthz
port: 8080
port: healthcheck
initialDelaySeconds: 3
periodSeconds: 3
readinessProbe:
httpGet:
path: /readyz
port: 8080
port: healthcheck
initialDelaySeconds: 3
periodSeconds: 3
env:
Expand Down Expand Up @@ -65,5 +68,5 @@ spec:
{{- end }}
{{- with .Values.tolerations }}
tolerations:
{{- toYaml . | nindent 8 }}
{{- toYaml . | nindent 8 }}
{{- end }}
7 changes: 5 additions & 2 deletions deploy/operator.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,16 +20,19 @@ spec:
command:
- kubernetes-secret-generator
imagePullPolicy: Always
ports:
- containerPort: 8080
name: healthcheck
livenessProbe:
httpGet:
path: /healthz
port: 8080
port: healthcheck
initialDelaySeconds: 3
periodSeconds: 3
readinessProbe:
httpGet:
path: /readyz
port: 8080
port: healthcheck
initialDelaySeconds: 3
periodSeconds: 3
env:
Expand Down

0 comments on commit 2188f56

Please sign in to comment.