Skip to content

Commit

Permalink
fix probes
Browse files Browse the repository at this point in the history
  • Loading branch information
cachemeoutside committed Nov 30, 2023
1 parent 84ee93e commit a387df3
Showing 1 changed file with 11 additions and 16 deletions.
27 changes: 11 additions & 16 deletions charts/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -68,25 +68,20 @@ spec:
containerPort: 80
protocol: TCP
livenessProbe:
{{- if .Values.web.env.USE_HTTP_BASIC }}
exec:
command:
- curl
- -X
- GET
- -u
- "${STAGING_HTTP_BASIC_USERNAME}:${STAGING_HTTP_BASIC_PASSWORD}"
- http://localhost/
{{- else }}
httpGet:
path: /
port: http
{{- if .Values.web.env.USE_HTTP_BASIC }}
httpHeaders:
- name: Authorization
value: Basic b3JhbGhpc3Rvcnk6b3JhbGhpc3Rvcnk=
{{- end }}
initialDelaySeconds: 120
periodSeconds: 30
readinessProbe:
httpGet:
path: /
port: http
{{- if .Values.web.env.USE_HTTP_BASIC }}
httpHeaders:
- name: Authorization
value: Basic b3JhbGhpc3Rvcnk6b3JhbGhpc3Rvcnk=
{{- end }}
{{- end }}
initialDelaySeconds: 120
periodSeconds: 30
resources:
Expand Down

0 comments on commit a387df3

Please sign in to comment.