Created
November 2, 2020 19:30
-
-
Save topdockerlead/18696732e8ecb1a97772911e9a0d4637 to your computer and use it in GitHub Desktop.
Minikube Dashboard Ingress Config
This file contains hidden or 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
| 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 |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
First off, run
minikube dashboardand then exit.Now you should be able to see kubernetes-dashboard namespace in the output of
kubectl get nsIt's fine then to run
kubectl apply -f dashboard-ingress.yamlFinally, edit your hostname file in
/etcto map your dashboard.com.Enjoy learning K8s!