k8s dashboard token过期时间太短的解决方案
在下载的dashboard yaml 文件中
args这里增加一行
- '--token-ttl=43200'
spec: securityContext: seccompProfile: type: RuntimeDefault containers: - name: kubernetes-dashboard image: kubernetesui/dashboard:v2.7.0 imagePullPolicy: Always ports: - containerPort: 8443 protocol: TCP args: - --auto-generate-certificates - --namespace=kubernetes-dashboard - --token-ttl=43200