Last active
March 24, 2016 20:00
-
-
Save gitschaub/5569b2a4930c9804f53c to your computer and use it in GitHub Desktop.
Nginx ingress controller passes ingress route to the service endpoint.
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 | |
NAME RULE BACKEND ADDRESS | |
nginx-ingress - | |
foo.bar.com | |
/dash kubernetes-dashboard:9090 | |
$ kubectl describe svc kubernetes-dashboard | |
Name: kubernetes-dashboard | |
Namespace: default | |
Labels: app=kubernetes-dashboard | |
Selector: app=kubernetes-dashboard | |
Type: ClusterIP | |
IP: 10.254.5.210 | |
Port: <unnamed> 9090/TCP | |
Endpoints: 172.16.63.46:9090 | |
Session Affinity: None | |
No events. | |
$ curl <ingress-host-ip>/dash -H 'Host: foo.bar.com' | |
404 page not found | |
$ kubectl edit ing | |
$ kubectl get ing | |
NAME RULE BACKEND ADDRESS | |
nginx-ingress - | |
foo.bar.com | |
/ kubernetes-dashboard:9090 | |
$ curl <ingress-host-ip> -H 'Host: foo.bar.com' | |
<returns kuberentes-dashboard html as expected> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment