diff --git a/staging/src/k8s.io/client-go/examples/in-cluster-client-configuration/README.md b/staging/src/k8s.io/client-go/examples/in-cluster-client-configuration/README.md index 811b750c9e2..eaa10e0fe15 100644 --- a/staging/src/k8s.io/client-go/examples/in-cluster-client-configuration/README.md +++ b/staging/src/k8s.io/client-go/examples/in-cluster-client-configuration/README.md @@ -25,7 +25,13 @@ build the image on Minikube: docker build -t in-cluster . If you are not using Minikube, you should build this image and push it to a registry -that your Kubernetes cluster can pull from. +that your Kubernetes cluster can pull from. If you have RBAC enabled, use the following +snippet to create role binding which will grant the default service account view +permissions. + +``` +kubectl create clusterrolebinding default-view --clusterrole=view --serviceaccount=default:default +``` Then, run the image in a Pod with a single instance Deployment: