Skip to content

Commit

Permalink
feat(charts): use probe II
Browse files Browse the repository at this point in the history
  • Loading branch information
thejoeejoee committed Nov 11, 2023
1 parent 85fe715 commit 6d0f1e2
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions charts/templates/web-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,17 +29,19 @@ spec:
{{/* httpget doesn't work, timeouted */}}
exec:
command:
- /bin/sh
- -c
- "wget 'http://localhost:{{ .Values.web.port }}/!/web' --header 'Host: {{ .Values.ingress.host | quote }}'"
- wget
- 'http://localhost:{{ .Values.web.port }}/!/web'
- --header
- 'Host: {{ .Values.ingress.host | quote }}'
livenessProbe:
initialDelaySeconds: 5
periodSeconds: 20
exec:
command:
- /bin/sh
- -c
- "wget 'http://localhost:{{ .Values.web.port }}/!/web' --header 'Host: {{ .Values.ingress.host | quote }}'"
- wget
- 'http://localhost:{{ .Values.web.port }}/!/web'
- --header
- 'Host: {{ .Values.ingress.host | quote }}'
envFrom:
- secretRef:
name: {{ .Values.web.secretName }}
Expand Down

0 comments on commit 6d0f1e2

Please sign in to comment.