kubernetes 401 You have been logged out because your token has expired
K8S dashboard token超时,见下图:解决方法:命令空间 ->kubernetes-dashboardDeployments‘–token-ttl=68400’spec:volumes:- name: kubernetes-dashboard-certssecret:secretName: kubernetes-dashboard-certsdefaultMode: 420-
·
kubernetes (401) : You have been logged out because your token has expired
K8S dashboard token超时,见下图:
解决方法:
命令空间 - >kubernetes-dashboard
2、增加一行参数 - ‘–token-ttl=68400’
‘–token-ttl=68400’
spec:
volumes:
- name: kubernetes-dashboard-certs
secret:
secretName: kubernetes-dashboard-certs
defaultMode: 420
- name: tmp-volume
emptyDir: {}
containers:
- name: kubernetes-dashboard
image: 'kubernetesui/dashboard:v2.0.0-rc5'
args:
- '--auto-generate-certificates'
- '--namespace=kubernetes-dashboard'
- '--token-ttl=68400' 增加了此行
ports:
- containerPort: 8443
protocol: TCP
env:
- name: ACCEPT_LANGUAGE
value: zh
更新即可
------------------------end
更多推荐
已为社区贡献7条内容
所有评论(0)