mirror of
https://github.com/kubernetes/client-go.git
synced 2025-07-16 16:21:11 +00:00
Merge pull request #69232 from dims/add-missing-step-to-in-cluster-client-configuration-example
Add missing step to in-cluster-client-configuration example Kubernetes-commit: 3a07fa620c6870bb63d8d877f42f417eb577be55
This commit is contained in:
commit
79cc619401
@ -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:
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user