Ryebridge:
Hey all,
With regard to the clusterrole command, let’s say I have created a service account in namespace red then granted permission for my resources as follows:
kubectl create clusterrole deploy-clusterrole --verb=create --resource=deployments,statefulsets
Then bind the SA like:
kubectl create rolebinding deployment-clusterrole --clusterrole=deploy-clusterrole --serviceaccount=default:satarget --namespace=red
Wouldn’t the following command have the same effect (so no need to supply namespace option) ?
kubectl create rolebinding deployment-clusterrole --clusterrole=deploy-clusterrole --serviceaccount=red:satarget