Disable dashboard session timeout so login persists

Default --token-ttl is 900s (15min idle), which was forcing re-entry of
the token repeatedly. Setting it to 0 makes a logged-in session
persist instead of expiring back to the login screen.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
Suriya
2026-07-20 11:27:26 +05:30
parent 1b38a0c240
commit ff372b8b4c

View File

@@ -62,6 +62,13 @@ spec:
args:
- --auto-generate-certificates
- --namespace=kubernetes-dashboard
# Disables the default 15-minute idle session timeout, so a
# logged-in session persists instead of dropping back to the
# token screen. The service account token itself already
# doesn't expire (it's a Secret-backed legacy token, not a
# short-lived TokenRequest one) - this was purely the
# dashboard's own session cache.
- --token-ttl=0
volumeMounts:
- name: kubernetes-dashboard-certs
mountPath: /certs