Hi , if i create clusterrole how can i see the cluster role and cluster role bin . . .

prasanth:
Hi , if i create clusterrole how can i see the cluster role and cluster role bindings . because after i created and i cant view those using kubectl get … do i need to create the clusterrole only with root user?

Tej_Singh_Rana:
Hello, @prasanth
You don’t need to create a clusterrolebinding, to view the clusterrole.

prasanth:
These get clusterroles can view using only root account??

prasanth:
Also creation of cluster role also need to do using root account only??

Tej_Singh_Rana:
It doesn’t rely on root a/c.

Tej_Singh_Rana:
You have to check, where you set the config file:

mkdir -p $HOME/.kube
sudo cp -i /etc/kubernetes/admin.conf $HOME/.kube/config
sudo chown $(id -u):$(id -g) $HOME/.kube/config

prasanth:
Thanks Tej