When Kubernetes dashboard is installed using the recommended settings, both authentication and HTTPS are enabled. Sometimes, you may want to disable authentication or HTTPS. For example, if Kubernetes dashboard is served behind a proxy, then it's unnecessary to enable authentication when the proxy has its own authentication enabled. Kubernetes dashboard uses auto-generated certificates for HTTPS, which may cause problems for HTTP client to access. This post shows how to disable authentication and HTTPS in Kubernetes dashboard.

First, we need to modify deployment of Kubernetes dashboard to remove the argument --auto-generate-certificates and add following extra arguments:

  • --enable-skip-login
  • --disable-settings-authorizer
  • --enable-insecure-login
  • --insecure-bind-address=0.0.0.0

After this change, Kubernetes dashboard server now starts on port 9090 for HTTP. Then we need to modify livenessProbe to use HTTP as the scheme and 9090 as the port. Port 9090 also needs to be added as containerPort.

Finally, we need to modify service of Kubernetes dashboard to open port 80 and use 9090 as the target port.

You can download the final Kubernetes dashboard installation file at here.

After you have done this, when Kubernetes dashboard is opened, you can click Skip in the login page to skip authentication and go to the dashboard directly. See the screenshot below.

Skip in Kubernetes dashboard