设置一年过期吧,够用了。
kubectl -n kubernetes-dashboard create token admin-user --duration=8760h
查看pod日志,显示这样:
error="failed to get latest.json repo from github.com: Get \"https://raw.githubusercontent.com/grafana/grafana/main/latest.json\": net/http: TLS handshake timeout" duration=10.415783371s