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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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!