mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-20 02:11:09 +00:00
rolebinding often used for serviceaccount (#107124)
* rolebinding offen used for serviceaccount * fix syntax error * fix syntax error
This commit is contained in:
parent
3489796d5c
commit
8c97443b7b
@ -40,8 +40,11 @@ var (
|
|||||||
Create a role binding for a particular role or cluster role.`))
|
Create a role binding for a particular role or cluster role.`))
|
||||||
|
|
||||||
roleBindingExample = templates.Examples(i18n.T(`
|
roleBindingExample = templates.Examples(i18n.T(`
|
||||||
# Create a role binding for user1, user2, and group1 using the admin cluster role
|
# Create a role binding for user1, user2, and group1 using the admin cluster role
|
||||||
kubectl create rolebinding admin --clusterrole=admin --user=user1 --user=user2 --group=group1`))
|
kubectl create rolebinding admin --clusterrole=admin --user=user1 --user=user2 --group=group1
|
||||||
|
|
||||||
|
# Create a role binding for serviceaccount monitoring:sa-dev using the admin role
|
||||||
|
kubectl create rolebinding admin-binding --role=admin --serviceaccount=monitoring:sa-dev`))
|
||||||
)
|
)
|
||||||
|
|
||||||
// RoleBindingOptions holds the options for 'create rolebinding' sub command
|
// RoleBindingOptions holds the options for 'create rolebinding' sub command
|
||||||
|
Loading…
Reference in New Issue
Block a user