-
Notifications
You must be signed in to change notification settings - Fork 8.1k
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
The ingress-nginx controller crashes due to unknown directive "alias"
when using global snippets.
#11322
Comments
This issue is currently awaiting triage. If Ingress contributors determines this is a relevant issue, they will accept it by applying the The 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. |
/remove-kind bug Try the root directive https://nginx.org/en/docs/http/ngx_http_core_module.html#alias The nginx directives you choose are not coded in the controller, just to state the obvious. Please feel free to re-open the issue and add the details as asked in a new bug report template, in case you find problem in the controller itself. /close |
@longwuyuan: 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. |
Actually I was wrong earlier (or maybe not as you are using snippet.sorry not clear) It seems the project removed the support for both alias and root directive #8624 Example of a custom backend service with custom error pages https://kubernetes.github.io/ingress-nginx/examples/customization/custom-errors/ |
Ok, that is a bit unfortunate. As mentioned in my original issue the documented method doesn't work because it enforces overwriting all errors returned from the backend, which is not what I want. However perhaps it's possible to implement something similar to the included error handling with a custom backend. |
What happened:
In an attempt to find a workaround for
#9211 #8376 I have added the following snippets to the ingress-nginx configMap.
This results in ingress-nginx returning an error stating that the alias directive doesn't exist.
What you expected to happen:
As the
alias
androot
directives are part of the nginxngx_http_core_module
I would have expected them to work.NGINX Ingress controller version
Kubernetes version (use
kubectl version
):Environment:
uname -a
):Please mention how/where was the cluster created like kubeadm/kops/minikube/kind etc.
kubectl version
kubectl get nodes -o wide
How was the ingress-nginx-controller installed:
Helm chart v4.10.0 (through ArgoCD)
values.yml
Anything else we need to know:
The text was updated successfully, but these errors were encountered: