使用curl请求api-server接口时出现下图的错误
临时方案:
kubectl create clusterrolebinding system:anonymous –clusterrole=cluster-admin –user=system:anonymous
最终方案:(只给view权限就可以了)
kubectl create clusterrolebinding system:anonymous –clusterrole=view –user=system:anonymous
参考地址:
http://docs.kubernetes.org.cn/494.html
原创文章,作者:kepupublish,如若转载,请注明出处:https://blog.ytso.com/183651.html