Skip to content

Commit

Permalink
fix livenessProbe bug
Browse files Browse the repository at this point in the history
  • Loading branch information
kahnwong committed Apr 13, 2024
1 parent 1e07f6b commit bf1c732
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions kubernetes/charts/base/chart/templates/container.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,8 @@ spec:
{{ if .ports }}
ports: {{ .ports | default list | toYaml | nindent 14 }}
{{ end }}
{{ if not (eq .healthcheck false)}}
livenessProbe:
{{ if not (eq .scheme "tcp")}}
{{ if not (eq .livenessProbe.scheme "tcp")}}
httpGet:
path: {{ .livenessProbePath | default "/" }}
port: {{ .port }}
Expand All @@ -49,7 +48,6 @@ spec:
tcpSocket:
port: {{ .port }}
{{ end }}
{{ end }}
securityContext: {{ toYaml .securityContext | default list | nindent 14 }}
args: {{ .args | default list | toYaml | nindent 14 }}
env: {{ .env | default list | toYaml | nindent 14 }}
Expand Down

0 comments on commit bf1c732

Please sign in to comment.