BUG(12) : Configured service account doesn‘t have access. Service account may have been revoked. pod
注 : 根据报错提示的User直接创建角色即可。spark调用k8s接口创建pod无相关权限。
·
日志
Configured service account doesn't have access. Service account may have been revoked. pods is forbidden: User "system:serviceaccount:bkbox:default" cannot create resource "pods" in API group "" in the namespace "default".
原因
spark调用k8s接口创建pod无相关权限
解决
kubectl create clusterrolebinding system:serviceaccount:bkbox:default --clusterrole=admin --serviceaccount=bkbox:default -namespace=default
注 : 根据报错提示的User直接创建角色即可
更多推荐
已为社区贡献10条内容
所有评论(0)