K8S kubelet logs報錯

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))node

處理方法:nginx

kubelet配置文件配置默認用戶權限如圖:ide

spacer.gif圖片.png


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

處理方法:server

anonymous用戶綁定一個cluster-admin的權限blog

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

spacer.gif圖片.png

相關文章
相關標籤/搜索