Skip to content

Commit 2d7c815

Browse files
authored
Merge pull request #8160 from openshift-cherrypick-robot/cherry-pick-8126-to-enterprise-3.9
[enterprise-3.9] Undo changes to daemonset RBAC docs
2 parents e413b20 + 3cb3d96 commit 2d7c815

File tree

2 files changed

+26
-0
lines changed

2 files changed

+26
-0
lines changed

admin_guide/manage_rbac.adoc

+19
Original file line numberDiff line numberDiff line change
@@ -716,6 +716,25 @@ Subjects:
716716

717717

718718
ifdef::openshift-enterprise,openshift-origin,atomic-registry[]
719+
[[admin-guide-granting-users-daemonset-permissions]]
720+
== Granting Users Daemonset Permissions
721+
722+
By default, project developers do not have the permission to create
723+
xref:../dev_guide/daemonsets.adoc#dev-guide-daemonsets[daemonsets]. As a cluster
724+
administrator, you can grant them the abilities.
725+
726+
. Create the cluster role:
727+
+
728+
----
729+
$ oc create clusterrole daemonset-admin --verb=create,delete,get,list,update,watch --resource=daemonsets.extensions
730+
----
731+
732+
. Create the local role binding:
733+
+
734+
----
735+
$ oc adm policy add-role-to-user daemonset-admin <user>
736+
----
737+
719738
[[creating-local-role]]
720739
== Creating a Local Role
721740

dev_guide/daemonsets.adoc

+7
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,13 @@ For more information on daemonsets, see the link:http://kubernetes.io/docs/admin
2424
[[dev-guide-creating-daemonsets]]
2525
== Creating Daemonsets
2626

27+
[IMPORTANT]
28+
====
29+
Before creating daemonsets, ensure you have been
30+
xref:../admin_guide/manage_rbac.adoc#admin-guide-granting-users-daemonset-permissions[given
31+
the required role by your {product-title} administrator].
32+
====
33+
2734
When creating daemonsets, the `*nodeSelector*` field is used to indicate the
2835
nodes on which the daemonset should deploy replicas.
2936

0 commit comments

Comments
 (0)