Last active
March 25, 2016 06:39
-
-
Save gitschaub/88b4417803b3e2bffbfb to your computer and use it in GitHub Desktop.
Nginx ingress controller does not respect namespace of ingress rules.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ kubectl get ing --namespace=test | |
NAME RULE BACKEND ADDRESS | |
nginx-ingress - | |
bar.baz.com | |
/gemini frontend:80 | |
$ kubectl get ing | |
NAME RULE BACKEND ADDRESS | |
nginx-ingress - | |
foo.bar.com | |
/status nginx-plus-service:8080 | |
$ kubectl get pod --namespace=test | |
NAME READY STATUS RESTARTS AGE | |
frontend-qc1z2 1/1 Running 0 1h | |
frontend-vumxs 1/1 Running 0 1h | |
nginx-ingress-042ty 0/1 CrashLoopBackOff 18 1h | |
$ kubectl logs nginx-ingress-042ty --namespace=test | |
2016/03/24 17:25:23 Failed to execute nginx -s reload: nginx: [emerg] host not found in upstream "nginx-plus-service" in /etc/nginx/nginx.conf:17 | |
, err: exit status 1 | |
$ kubectl edit ing | |
<remove /status ingress rule in default namespace> | |
$ kubectl get ing | |
NAME RULE BACKEND ADDRESS | |
...wait some time for back off to expire... | |
$ kubectl get pod --namespace=test | |
NAME READY STATUS RESTARTS AGE | |
adam-frontend-qc1z2 1/1 Running 0 2h | |
adam-frontend-vumxs 1/1 Running 0 2h | |
nginx-ingress-042ty 1/1 Running 19 7s |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment