Extending TTL of session on the Kubernetes dashboard
Tue, 24 May 2022
steps.txt
The kubernetes dashboard ttl for authentication is a bit too short. To extend it run...
kubectl edit deployment kubernetes-dashboard -n kube-system
In some versions, the kubernetes-dashboard deployment is in the kubernetes-dashboard namespace.
Go down to the part that has...
containers:
- args:
- --auto-generate-certificates
- --namespace=kube-system
And add this in...
- --token-ttl=86400
Where 86400 is the TTL (in seconds) you want to have.
Save the file, it auto-applies. Can take up to 30 minutes to see and able to use again though