1. 程式人生 > >Error from server (Forbidden): Forbidden (user=sys

Error from server (Forbidden): Forbidden (user=sys

報錯

Error from server (Forbidden): Forbidden (user=system:anonymous, verb=get, resource=nodes, subresource=proxy)

暫時解決辦法

繫結一個cluster-admin的許可權。

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