https://kubernetes.io/docs/admin/authorization/rbac/#service-account-permissions describes how you can give service accounts permissions
This would grant view permissions to the default serviceaccount in the default namespace: kubectl create rolebinding default-view \ --clusterrole=view \ --serviceaccount=default:default \ --namespace=default On Monday, November 27, 2017 at 8:35:29 PM UTC-5, DK wrote: > > GET at: > https://kubernetes.default.svc/api/v1/namespaces/default/configmaps/my-config. > > Message: Forbidden!Configured service account doesn't have access. > Service account may have been revoked. configmaps "my-config" is forbidden: > User "system:serviceaccount:default:default" cannot get configmaps in the > namespace "default". > > How can I give the default service account permissions to view the configmaps? > > -- You received this message because you are subscribed to the Google Groups "Kubernetes user discussion and Q&A" group. To unsubscribe from this group and stop receiving emails from it, send an email to kubernetes-users+unsubscr...@googlegroups.com. To post to this group, send email to kubernetes-users@googlegroups.com. Visit this group at https://groups.google.com/group/kubernetes-users. For more options, visit https://groups.google.com/d/optout.