Skip to content
Snippets Groups Projects
Commit 9ddb614d authored by Jack Henschel's avatar Jack Henschel
Browse files

Fix php-fpm healthchecks

parent 88e43502
No related branches found
No related tags found
1 merge request!51Fix php-fpm healthchecks
...@@ -89,6 +89,9 @@ spec: ...@@ -89,6 +89,9 @@ spec:
dnsConfig: dnsConfig:
options: options:
- name: single-request - name: single-request
# We are not using service-discovery based on environment variables
# https://kubernetes.io/docs/tutorials/services/connect-applications-service/#environment-variables
enableServiceLinks: false
restartPolicy: Always restartPolicy: Always
serviceAccountName: {{ .Release.Name }} serviceAccountName: {{ .Release.Name }}
# We want to limit the permissions on directories mounted by the httpd container to not allow users # We want to limit the permissions on directories mounted by the httpd container to not allow users
......
...@@ -156,6 +156,8 @@ containers: ...@@ -156,6 +156,8 @@ containers:
- | - |
# check that PHP-FPM is responding # check that PHP-FPM is responding
function check_php_fpm { function check_php_fpm {
# "env -i" runs the command without extra environment variables
env -i \
SCRIPT_NAME=/ping \ SCRIPT_NAME=/ping \
SCRIPT_FILENAME=/ping \ SCRIPT_FILENAME=/ping \
REQUEST_METHOD=GET \ REQUEST_METHOD=GET \
...@@ -175,6 +177,8 @@ containers: ...@@ -175,6 +177,8 @@ containers:
- | - |
# check that PHP-FPM is responding # check that PHP-FPM is responding
function check_php_fpm { function check_php_fpm {
# "env -i" runs the command without extra environment variables
env -i \
SCRIPT_NAME=/ping \ SCRIPT_NAME=/ping \
SCRIPT_FILENAME=/ping \ SCRIPT_FILENAME=/ping \
REQUEST_METHOD=GET \ REQUEST_METHOD=GET \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment