Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

where is the /healthz endpoint in the php code? #1

Open
cordoval opened this issue Jul 12, 2017 · 2 comments
Open

where is the /healthz endpoint in the php code? #1

cordoval opened this issue Jul 12, 2017 · 2 comments

Comments

@cordoval
Copy link

cordoval commented Jul 12, 2017

@tomazzaman sorry i cannot find the locs where you implement the /healthz entry on the php code, can you please point me there? thanks 👍 👴 I hold the 🔑 he he.

@cordoval
Copy link
Author

very frustrated now, on your https://codeable.io/wordpress-developers-intro-to-docker-part-three-kubernetes/ blog you set liveprobes and readinessprobes and here i fail to see the /healthz endpoint
it means this wordpress does not have anything there?

@richehmer
Copy link

richehmer commented Dec 20, 2017

There are differences between the image generated in the tutorials and the one available from codeable/kubepress:4.8.1 ... the latter image configures the /healthz endpoint in /etc/nginx/conf.d/default.conf, not via wordpress.

# Health check for Kubernetes readiness probe
location /healthz {
  access_log off;
  return 200;
}

This may be a necessary workaround because Ingress doesn't allow any traffic through to the backend service until the service returns a 200 from an endpoint, but WordPress always returns a 301 (permanent redirect) if the host header of a request doesn't match the configured site url, so the service is never considered 'healthy' when wordpress is allowed to answer the health-check.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants