diff --git a/helm_deploy/wordpress/templates/deployment.yaml b/helm_deploy/wordpress/templates/deployment.yaml index 9e734115..27c870bf 100644 --- a/helm_deploy/wordpress/templates/deployment.yaml +++ b/helm_deploy/wordpress/templates/deployment.yaml @@ -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 diff --git a/helm_deploy/wordpress/templates/hpa-wordpress.yaml b/helm_deploy/wordpress/templates/hpa-wordpress.yaml index 9bc96456..0483ac03 100644 --- a/helm_deploy/wordpress/templates/hpa-wordpress.yaml +++ b/helm_deploy/wordpress/templates/hpa-wordpress.yaml @@ -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