在下载的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
标签:kubernetes,--,token,dashboard,ttl,k8s From: https://www.cnblogs.com/scfssq/p/17629387.html