Skip to content

Instantly share code, notes, and snippets.

@pamanes
Created December 27, 2023 23:07
Show Gist options
  • Save pamanes/286176b3d6da06bed7e089fabc44ddd4 to your computer and use it in GitHub Desktop.
Save pamanes/286176b3d6da06bed7e089fabc44ddd4 to your computer and use it in GitHub Desktop.
dashboard-ingress (2023)
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
@pamanes
Copy link
Author

pamanes commented Dec 27, 2023

Kubernetes Tutorial for Beginners [FULL COURSE in 4 Hours]
https://www.youtube.com/watch?v=X48VuDVv0do

This ingress file is the latest (2023) and works, the one from the video is broken, class name is deprecated and path prefix is incorrect

If you're running on Windows 10 + minikube + docker driver you will need to run a terminal with minikube tunnel and leave the window open in order to navigate to the dashboard with dashboard.com (provided it's already in your hosts file)

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