Skip to content

Instantly share code, notes, and snippets.

@marcoceppi
Created May 2, 2017 22:55
Show Gist options
  • Save marcoceppi/b792885ba373807daddb1cc577b73826 to your computer and use it in GitHub Desktop.
Save marcoceppi/b792885ba373807daddb1cc577b73826 to your computer and use it in GitHub Desktop.
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: kubedash-ingress
namespace: kube-system
spec:
rules:
- host: kubernetes.10.241.1.222.xip.io
http:
paths:
- path: /
backend:
serviceName: kubernetes-dashboard
servicePort: 80
@andre-brongniart
Copy link

Doesn't this need a service to work?

anyway, it's odd because it throws an nginx 502 gw error. Now sure what host is that nginx: the dashboard, or the ingress pod?

@andre-brongniart
Copy link

figured it out. the namespace was wrong. had to be 'default' instead of 'kube-system'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment