日志
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直接创建角色即可