I have Kubernetes Cluster with Ingress/Traefik controller
Also, I installed the dashboard using the standard config from here: https://raw.githubusercontent.com/kubernetes/dashboard/master/src/deploy/recommended/kubernetes-dashboard.yaml
I'm trying to access the Dashboard through Ingress, but I get 404 error
404 page not found
My ingress.yml file looks like this
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
annotations:
kubernetes.io/ingress.class: "traefik"
name: app-ingress-system
namespace: kube-system
spec:
tls:
- hosts:
- dashboard.domain.com
secretName: kubernetes-dashboard-certs
rules:
- host: dashboard.domain.com
http:
paths:
- path: /
backend:
serviceName: kubernetes-dashboard
servicePort: 443
I've tried different - path: (like /dashboard, /proxy) same result
This code works on microk8s. In some systems must change service kubernetes-dasboard type to NodePort
Create a tls secret for yourdomain.com must be in the same namespace where is kubernates-dashboard, must have the crt and key files.
Use this code for create the ingress