Kubernetes Dashboard Disable Token TTL/Skip Login

The default token TTL for Kubernetes Dashboard is 10 minutes, it is inconvenient in a development environment. We can remove this limit by disabling the TTL or enabling the skip login.

1. Inspect the configuration for kubernetes-dashboard

kubectl -n kubernetes-dashboard describe deployments kubernetes-dashboard

You may see --auto-generate-certificates in the **arg** section.

2. Update the configuration to add --token-ttl=0 to disable the session timeout; add -enable-skip-login to enable the skip login button.

kubectl -n kubernetes-dashboard edit deployments kubernetes-dashboard


Args:
--auto-generate-certificates
--token-ttl=0
--enable-skip-login
--enable-insecure-login

-EOF-