Skip to content

Commit

Permalink
Merge pull request #115 from ministryofjustice/turn-off-all-probe
Browse files Browse the repository at this point in the history
Remove all health checks for testing
  • Loading branch information
brown-a2 authored Oct 9, 2023
2 parents 1207371 + c3fb339 commit 313d257
Showing 1 changed file with 26 additions and 26 deletions.
52 changes: 26 additions & 26 deletions helm_deploy/wordpress/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,16 +52,16 @@ spec:
- secretRef:
name: hale-wp-secrets-{{ .Release.Revision }}
{{- if or (eq .Values.configmap.envtype "prod") (eq .Values.configmap.envtype "staging") }}
livenessProbe:
httpGet:
port: 443
path: /hale-wpms-2020
scheme: HTTPS
host: {{ .Values.domain }}
initialDelaySeconds: 120
periodSeconds: 30
timeoutSeconds: 5
failureThreshold: 3
# livenessProbe:
# httpGet:
# port: 443
# path: /hale-wpms-2020
# scheme: HTTPS
# host: {{ .Values.domain }}
# initialDelaySeconds: 120
# periodSeconds: 30
# timeoutSeconds: 5
# failureThreshold: 3
# readinessProbe:
# exec:
# command:
Expand All @@ -88,22 +88,22 @@ spec:
- name: wordpress-volume-file-mount
mountPath: /var/www/html
{{- if or (eq .Values.configmap.envtype "prod") (eq .Values.configmap.envtype "staging") }}
readinessProbe:
exec:
command:
- sh
- -c
- |
if curl --silent --fail http://localhost:8080 >/dev/null; then
exit 0
else
exit 1
fi
initialDelaySeconds: 35
periodSeconds: 5
timeoutSeconds: 10
successThreshold: 1
failureThreshold: 3
# readinessProbe:
# exec:
# command:
# - sh
# - -c
# - |
# if curl --silent --fail http://localhost:8080 >/dev/null; then
# exit 0
# else
# exit 1
# fi
# initialDelaySeconds: 35
# periodSeconds: 5
# timeoutSeconds: 10
# successThreshold: 1
# failureThreshold: 3
{{- end }}
volumes:
- name: wordpress-volume-file-mount
Expand Down

0 comments on commit 313d257

Please sign in to comment.