拉取配置到本地:
kubectl get deploy kubernetes-dashboard -n kubernetes-dashboard -o yaml > dashboard-deploy.yaml
增加参数:
spec:
containers:
- args:
- --auto-generate-certificates
- --namespace=kubernetes-dashboard
- --token-ttl=86400 # 新增此行
重新应用
kubectl apply -f dashboard-deploy.yaml
标签:k3s,kubernetes,deploy,--,yaml,token,dashboard
From: https://www.cnblogs.com/lemos/p/17342096.html