Kubernetes increase the default auto-logout time

Let’s increase the default auto-logout time so that we don’t have to keep re-authenticating during the workshop. Note that the default logout time of 15 minutes is set for security reasons. The --token-ttl=43200" argument in the following command is the only change that we are making to the dashboard.

kubectl patch deployment kubernetes-dashboard -n kube-system -p '{"spec": {"template": {"spec": {"containers": [{"name": "kubernetes-dashboard", "args": ["--token-ttl=43200", "--auto-generate-certificates"]}]}}}}'

你可能感兴趣的:(Kubernetes,Kubernetes)