Skip to content

Instantly share code, notes, and snippets.

@dockerlead
Created November 2, 2020 19:30
Show Gist options
  • Save dockerlead/18696732e8ecb1a97772911e9a0d4637 to your computer and use it in GitHub Desktop.
Save dockerlead/18696732e8ecb1a97772911e9a0d4637 to your computer and use it in GitHub Desktop.
Minikube Dashboard Ingress Config
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: dashboard-ingress
namespace: kubernetes-dashboard
spec:
rules:
- host: dashboard.com
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: kubernetes-dashboard
port:
number: 80
@dockerlead
Copy link
Author

First off, run minikube dashboard and then exit.
Now you should be able to see kubernetes-dashboard namespace in the output of kubectl get ns
It's fine then to run kubectl apply -f dashboard-ingress.yaml
Finally, edit your hostname file in /etc to map your dashboard.com.
Enjoy learning K8s!

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