Search code examples
kuberneteskubernetes-ingresskubernetes-dashboard

using ingress to expose dashboard


we have started using Kubernetes lately.

since we want to use the dashboard and we prefer not using kubectl proxy command I was wondering how to allow dashboard for all external browsers.

I found that ingress might be helpful in it and provide a solution.

does any one know how to implement that dashboard access via ingress?

many thanks


Solution

  • It's a pretty straightforward thing to, assuming you have ingress operational already. We expose couple of internal services like grafana or prometheus over ingress with basic auth security enabled.

    Simply create an Ingress in your kube-system namespace that will point to your dashboard service. If you use official community nginx ingress that take advantage of annotations to set up ssl, auth etc.