I'm trying to deploy Wordpress (Docker image: wordpress:5.1.1) and use the native GKE Ingress. When the site is not installed yet, it redirects you from /
to /wp-admin/install.php
with the HTTP status code 301. The problem is that the default healthcheck is trying to reach the /
path and expects to get 200, but it receives 301 instead and considers the service unhealthy.
Is there any other endpoint, which could be used for the healthchecks? Or maybe some other elegant solution, which would not require a modification of the Wordpress's core files?
UPD: /wp-admin/install.php
seems to work fine, but doesn't seem to be a good universal solution.