File tree Expand file tree Collapse file tree 2 files changed +29
-2
lines changed Expand file tree Collapse file tree 2 files changed +29
-2
lines changed Original file line number Diff line number Diff line change @@ -183,7 +183,7 @@ $ oc adm new-project myproject \
183
183
--node-selector='type=user-node,region=east'
184
184
----
185
185
186
- Once this command is run, this becomes the adminstrator -set node selector for
186
+ Once this command is run, this becomes the administrator -set node selector for
187
187
all pods contained in the specified project.
188
188
189
189
[NOTE]
@@ -215,7 +215,7 @@ You can also override the default value for an existing project namespace by usi
215
215
----
216
216
217
217
If `openshift.io/node-selector` is set to an empty string (`oc adm new-project
218
- --node-selector=""`), the project will not have an adminstrator -set node
218
+ --node-selector=""`), the project will not have an administrator -set node
219
219
selector, even if the cluster-wide default has been set. This means that, as a
220
220
cluster administrator, you can set a default to restrict developer projects to a
221
221
subset of nodes and still enable infrastructure or other projects to schedule
Original file line number Diff line number Diff line change @@ -19,8 +19,35 @@ A daemonset can be used to run replicas of a pod on specific or all nodes in an
19
19
Use daemonsets to create shared storage, run a logging pod on every node in
20
20
your cluster, or deploy a monitoring agent on every node.
21
21
22
+ For security reasons, only cluster administrators can create daemonsets.
23
+ (xref:../admin_guide/manage_rbac.adoc#admin-guide-granting-users-daemonset-permissions[Granting Users Daemonset Permissions.])
24
+
22
25
For more information on daemonsets, see the link:http://kubernetes.io/docs/admin/daemons/[Kubernetes documentation].
23
26
27
+ [IMPORTANT]
28
+ ====
29
+ Daemonset scheduling is incompatible with project's default node selector.
30
+ If you fail to disable it, the daemonset gets restricted by merging with the
31
+ default node selector. This results in frequent pod recreates on the nodes that
32
+ got unselected by the merged node selector, which in turn puts unwanted load on
33
+ the cluster.
34
+
35
+ Therefore,
36
+
37
+ * Before you start using daemonsets, disable the default project-wide
38
+ xref:../admin_guide/managing_projects.adoc#using-node-selectors[node selector]
39
+ in your namespace, by setting the namespace annotation `openshift.io/node-selector` to an empty string:
40
+
41
+ ----
42
+ # oc patch namespace myproject -p \
43
+ '{"metadata": {"annotations": {"openshift.io/node-selector": ""}}}'
44
+ ----
45
+
46
+ * If you are creating a new project, overwrite the default node selector using
47
+ `oc adm new-project --node-selector=""`.
48
+
49
+ ====
50
+
24
51
[[dev-guide-creating-daemonsets]]
25
52
== Creating Daemonsets
26
53
You can’t perform that action at this time.
0 commit comments