Add users with limited rights
The following procedure creates a ServiceAccount in a dedicated namespace and generates a kubeconfig that authenticates as that ServiceAccount. 1. Create a namespace that will contain both the ServiceAccount and the resources it can access:test-namespace, test-serviceaccount, and test-serviceaccount-rolebinding with the intended names:
- Replace
client-certificate-dataandclient-key-datainuserswithtoken: <token-from-step-3> - Rename the user entry from
admintotest-serviceaccount - Update the
userreference incontextstotest-serviceaccount


