Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Undo changes to daemonset RBAC docs #8126

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions admin_guide/manage_rbac.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -712,6 +712,25 @@ Subjects:


ifdef::openshift-enterprise,openshift-origin,atomic-registry[]
[[admin-guide-granting-users-daemonset-permissions]]
== Granting Users Daemonset Permissions

By default, project developers do not have the permission to create
xref:../dev_guide/daemonsets.adoc#dev-guide-daemonsets[daemonsets]. As a cluster
administrator, you can grant them the abilities.

. Create the cluster role:
+
----
$ oc create clusterrole daemonset-admin --verb=create,delete,get,list,update,watch --resource=daemonsets.extensions
----

. Create the local role binding:
+
----
$ oc adm policy add-role-to-user daemonset-admin <user>
----

[[creating-local-role]]
== Creating a Local Role

Expand Down
7 changes: 7 additions & 0 deletions dev_guide/daemonsets.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,13 @@ For more information on daemonsets, see the link:http://kubernetes.io/docs/admin
[[dev-guide-creating-daemonsets]]
== Creating Daemonsets

[IMPORTANT]
====
Before creating daemonsets, ensure you have been
xref:../admin_guide/manage_rbac.adoc#admin-guide-granting-users-daemonset-permissions[given
the required role by your {product-title} administrator].
====

When creating daemonsets, the `*nodeSelector*` field is used to indicate the
nodes on which the daemonset should deploy replicas.

Expand Down