I am not able to attach to a container in a pod. Receiving below message Error from server (Forbidden): pods "sleep-76df4f989c-mqvnb" is forbidden: cannot exec into or attach to a privileged container
Could someone please let me what i am missing?
I have not enabled RBAC at all. What I have done is that i have enabled istio and all the pods are now running with side car. I am not able to attach or exec to pods which have istio. I am able to attach or exec which do not have istio proxy side car.
Need help here.
This seems to be a permission (possibly RBAC) issue.
See Kubernetes pod security-policy.
For instance gluster/gluster-kubernetes
issue 432 points to Azure PR 1961, which disable the cluster-admin
rights (although you can customize/override the admission-controller flags passed to the API server).
So it depends on the nature of your Kubernetes environment.