Skip to content

Commit

Permalink
fix(charts): proper probes for web container
Browse files Browse the repository at this point in the history
  • Loading branch information
thejoeejoee committed Sep 18, 2024
1 parent 7905b8e commit 73e64de
Showing 1 changed file with 23 additions and 19 deletions.
42 changes: 23 additions & 19 deletions charts/templates/web-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ metadata:
{{- include "fiesta.labels" . | nindent 4 }}
{{- include "fiesta.componentLabels" "web" | nindent 4 }}
spec:
replicas: 3
replicas: 2
strategy:
type: RollingUpdate
rollingUpdate:
Expand Down Expand Up @@ -37,24 +37,28 @@ spec:
- containerPort: {{ .Values.web.port }}
protocol: TCP
name: web
{{/* readinessProbe:*/}}
{{/* initialDelaySeconds: 5*/}}
{{/* */}}{{/* httpget doesn't work, timeouted */}}
{{/* exec:*/}}
{{/* command:*/}}
{{/* - wget*/}}
{{/* - 'http://localhost:{{ .Values.web.port }}/!/web'*/}}
{{/* - --header*/}}
{{/* - 'Host: {{ .Values.ingress.host | quote }}'*/}}
{{/* livenessProbe:*/}}
{{/* initialDelaySeconds: 5*/}}
{{/* periodSeconds: 20*/}}
{{/* exec:*/}}
{{/* command:*/}}
{{/* - wget*/}}
{{/* - 'http://localhost:{{ .Values.web.port }}/!/web'*/}}
{{/* - --header*/}}
{{/* - 'Host: {{ .Values.ingress.host | quote }}'*/}}
readinessProbe:
initialDelaySeconds: 3
# httpget doesn't work, timeouted
exec:
command:
- wget
- 'http://localhost:{{ .Values.web.port }}/!/web'
- --header
- 'Host: {{ .Values.ingress.host }}'
- -O
- /dev/null
livenessProbe:
initialDelaySeconds: 3
periodSeconds: 20
exec:
command:
- wget
- 'http://localhost:{{ .Values.web.port }}/!/web'
- --header
- 'Host: {{ .Values.ingress.host }}'
- -O
- /dev/null
envFrom:
- secretRef:
name: {{ .Values.web.secretName }}
Expand Down

0 comments on commit 73e64de

Please sign in to comment.