kubernetes-dashboard修改默认token认证过期时间

dashboard

release
注意:对kubernetes的版本兼容(api的兼容)

modify token-ttl

默认900s/15分钟后认证token回话失效,需要重新登录认证,修改12h,方便使用
在线修改kubernetes-dashboard deployment

kubectl edit
kubectl edit deployment kubernetes-dashboard -n kubernetes-dashboard //修改新增 --token-ttl=43200

reference

link
link
link

原文地址:https://www.cnblogs.com/xiaochina/p/12973241.html