K8Skubeletlogs报错

1.error: You must be logged in to the server (the server has asked for the client to provide credentials ( pods/log nginx-7bb7cd8db5-v756s))

创新互联公司坚持“要么做到,要么别承诺”的工作理念,服务领域包括:成都网站制作、成都做网站、外贸营销网站建设、企业官网、英文网站、手机端网站、网站推广等服务,满足客户于互联网时代的大祥网站设计、移动媒体设计的需求,帮助企业找到有效的互联网解决方案。努力成为您成熟可靠的网络建设合作伙伴!

处理方法:

kubelet配置文件配置默认用户权限如图:

K8S kubelet logs报错K8S kubelet logs报错

2.Error from server (Forbidden): Forbidden (user=system:anonymous, verb=get, resource=nodes, subresource=proxy) ( pods/log nginx-7bb7cd8db5-v756s)

处理方法:

anonymous用户绑定一个cluster-admin的权限

kubectl create clusterrolebinding system:anonymous --clusterrole=cluster-admin --user=system:anonymous

K8S kubelet logs报错K8S kubelet logs报错


文章名称:K8Skubeletlogs报错
标题来源:http://pwwzsj.com/article/jjpojj.html