Grant Kubernetes service account privileges to get pods from all namespaces
问题 I would like to grant a Kubernetes service account privileges for executing kubectl --token $token get pod --all-namespaces . I'm familiar with doing this for a single namespace but don't know how to do it for all (including new ones that may be created in the future and without granting the service account full admin privileges). Currently I receive this error message: Error from server (Forbidden): pods is forbidden: User "system:serviceaccount:kube-system:test" cannot list resource "pods"