我的 Kubernetes 集群有问题,我的 kube-scheduler pod 卡在“CrashLoopBackOff”状态,我无法纠正它。日志抱怨缺少服务令牌:
kubectl logs kube-scheduler-master -n kube-system
I1011 09:01:04.309289 1 serving.go:319] Generated self-signed cert in-memory
W1011 09:01:20.579733 1 authentication.go:387] failed to read in-cluster kubeconfig for delegated authentication: open /var/run/secrets/kubernetes.io/serviceaccount/token: no such file or directory
W1011 09:01:20.579889 1 authentication.go:249] No authentication-kubeconfig provided in order to lookup client-ca-file in configmap/extension-apiserver-authentication in kube-system, so client certificate authentication won't work.
W1011 09:01:20.579917 1 authentication.go:252] No authentication-kubeconfig provided in order to lookup requestheader-client-ca-file in configmap/extension-apiserver-authentication in kube-system, so request-header client certificate authentication won't work.
W1011 09:01:20.579990 1 authorization.go:177] failed to read in-cluster kubeconfig for delegated authorization: open /var/run/secrets/kubernetes.io/serviceaccount/token: no such file or directory
W1011 09:01:20.580040 1 authorization.go:146] No authorization-kubeconfig provided, so SubjectAccessReview of authorization tokens won't work.
invalid configuration: no configuration has been provided
谁能解释一下它是什么/var/run/secrets/kubernetes.io/serviceaccount/token
,它应该存储在哪里(是主机上的路径还是容器内的路径)以及如何重新生成它?
我在所有使用kubeadm
. 自从这个错误第一次出现以来,我已经愚蠢地升级了集群(我读到它可能是我使用的版本中的一个错误)。我之前使用的是 1.14.* 版本。
任何帮助将不胜感激; 一切都在这个集群上运行,我觉得我的手臂已经被切断了。
提前致谢,
哈利