Skip to content

Commit

Permalink
File check Liveness probe setup
Browse files Browse the repository at this point in the history
  • Loading branch information
brown-a2 committed Oct 10, 2023
1 parent bda4d60 commit 607339f
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 7 deletions.
15 changes: 10 additions & 5 deletions helm_deploy/wordpress/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,16 @@ spec:
name: hale-wp-secrets-{{ .Release.Revision }}
{{- if or (eq .Values.configmap.envtype "prod") (eq .Values.configmap.envtype "staging") }}
livenessProbe:
httpGet:
port: 443
path: /wp-admin/install.php
scheme: HTTPS
# host: {{ .Values.domain }}
exec:
command:
- sh
- -c
- |
if [ -f /var/www/html/wp-load.php ]; then
exit 0
else
exit 1
fi
initialDelaySeconds: 120
periodSeconds: 10
timeoutSeconds: 5
Expand Down
4 changes: 2 additions & 2 deletions helm_deploy/wordpress/templates/hpa-wordpress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ spec:
name: wordpress
{{- if eq .Values.configmap.envtype "prod" }}
minReplicas: 3
maxReplicas: 12
maxReplicas: 8
{{- else if eq .Values.configmap.envtype "staging" }}
minReplicas: 2
minReplicas: 12
maxReplicas: 12
{{- else if eq .Values.configmap.envtype "demo" }}
minReplicas: 2
Expand Down

0 comments on commit 607339f

Please sign in to comment.