-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
NGINX Ingress + Wordpress-fpm = ERR_TOO_MANY_REDIRECTS #6602
Comments
I'm having similar issue on configuring this for laravel as well.. currently have the setup for ingress controller to point to service that points to pods with nginx and php-fpm. Would prefer to point to php-fpm straightaway, however I can't find any working example specifically on: How does your ingress controller have access to the script path? is it through persistent volume? |
It seems like nobody was able to implement nginx-ingress -> fpm, so far as well looked for any successful implementation, but all of them using nginx as a sidecard with fpm container... no straight ingress -> fpm yet... |
Has anyone been able to configure |
I have managed to get it working, see my question in #6897, also related to #4822. Basically you have to translate most of the block in your nginx Also node that |
This should be officially supported. I configured nginx as a sidecar but I'm adding prometheus exporters for each (nginx, and php-fpm), and the log shipper as well. It will be so messy within the pod. |
/help wanted |
/help |
@iamNoah1: Please ensure the request meets the requirements listed here. If this request no longer meets these requirements, the label can be removed In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
The Kubernetes project currently lacks enough contributors to adequately respond to all issues and PRs. This bot triages issues and PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle stale |
The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and PRs. This bot triages issues and PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle rotten |
The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and PRs. This bot triages issues and PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /close |
@k8s-triage-robot: Closing this issue. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
Have you managed to do it ? I'm still unable to run a simple website:
|
For me it works with
And
Nevertheless, you still have the issue that the ingress controller enables fastcgi for every path and you cannot serve static files anymore. |
I've been searching and looking everywhere on the internet and on these forms for days to help understand this issue and how to properly setup NGINX Ingress with Wordpress-fpm. I'm rather new to Kubernetes and all so I've been working on setting this up to help me learn it all.
I can get it to work using the image of Wordpress that has Apache included (Wordpress:latest) but I rather use NGINX ingress to do the lifting instead of the built in Apache so this is the reason I'm trying to get it to work. Also good to learn a little more complex setup with Nginx ingress.
It seems that once all manifests are applied I visit localhost and I see this, ERR_TOO_MANY_REDIRECTS. I'm guessing that Wordpress can't get the header of X-Forwarded-Proto that it's looking for in the wp-config.php to let it know it's behind a reverse proxy of sorts.
Any help to understand what is the missing piece is greatly appreciated from more knowledgeable professionals who use this technology on a daily basis. It’s also driving me nuts why I can’t figure out how to correct it with the menu annotations I’ve tried.
Below are the manifest that I'm using:
wordpress.yml
ingress.yml
The text was updated successfully, but these errors were encountered: