no API token found for service account default

kubectl get pods报错
Jan 14 12:20:33 k8smaster01 kube-controller-manager: I0114 12:20:33.301483    8247 event.go:217] Event(api.ObjectReference{Kind:"ReplicaSet", Namespace:"default", Name:"nginx-3449338310", UID:"266290c2-36f2-11ea-a28e-000c299594c3", APIVersion:"extensions", ResourceVersion:"673", FieldPath:""}): type: 'Warning' reason: 'FailedCreate' Error creating: No API token found for service account "default", retry after the token is automatically created and added to the service account


解决办法:
编辑/etc/kubernetes/apiserver 去除 KUBE_ADMISSION_CONTROL中的SecurityContextDeny,ServiceAccount,并重启kube-apiserver.service服务

发布了13 篇原创文章 · 获赞 1 · 访问量 1256
展开阅读全文

没有更多推荐了,返回首页

©️2019 CSDN 皮肤主题: 大白 设计师: CSDN官方博客

分享到微信朋友圈

×

扫一扫,手机浏览