Skip to content

Commit 3b38479

Browse files
authored
clarify the importance of DNS pods scheduling on infra nodes
1 parent f777711 commit 3b38479

File tree

1 file changed

+33
-26
lines changed

1 file changed

+33
-26
lines changed

articles/openshift/howto-infrastructure-nodes.md

Lines changed: 33 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,39 @@ Vnet:
213213
oc get machineset <machineset_name> -n openshift-machine-api -o jsonpath='{.spec.template.spec.providerSpec.value.vnet}'
214214
```
215215
216+
## DNS
217+
218+
Follow the instructions below to enable scheduling of DNS pods on the infrastructure nodes.
219+
220+
> [!NOTE]
221+
> This section is crucial to support log collection from infrastructure nodes, ensuring supportability of your deployment.
222+
>
223+
224+
1. Allow the DNS pods to run on the infrastructure nodes.
225+
226+
```
227+
oc edit dns.operator/default
228+
```
229+
230+
```
231+
apiVersion: operator.openshift.io/v1
232+
kind: DNS
233+
metadata:
234+
name: default
235+
spec:
236+
nodePlacement:
237+
tolerations:
238+
- operator: Exists
239+
```
240+
241+
1. Verify that DNS pods are scheduled onto all infra nodes.
242+
243+
```
244+
oc get ds/dns-default -n openshift-dns
245+
NAME DESIRED CURRENT READY UP-TO-DATE AVAILABLE NODE SELECTOR AGE
246+
dns-default 7 7 7 7 7 kubernetes.io/os=linux 35d
247+
```
248+
216249
## Moving workloads to the new infrastructure nodes
217250
218251
Use the instructions below to move your infrastructure workloads to the infrastructure nodes previously created.
@@ -359,30 +392,4 @@ Use this procedure for any additional ingress controllers you may have in the cl
359392
kube-state-metrics-574c5bfdd7-f7fjk 3/3 Running 0 2m49s 10.131.4.8 cz-cluster-hsmtw-infra-aro-machinesets-eastus-1-vr56r <none> <none>
360393
```
361394
362-
### DNS
363-
364-
1. Allow the DNS pods to run on the infrastructure nodes.
365-
366-
```
367-
oc edit dns.operator/default
368-
```
369-
370-
```
371-
apiVersion: operator.openshift.io/v1
372-
kind: DNS
373-
metadata:
374-
name: default
375-
spec:
376-
nodePlacement:
377-
tolerations:
378-
- operator: Exists
379-
```
380-
381-
1. Verify that DNS pods are scheduled onto all infra nodes.
382-
383-
```
384-
oc get ds/dns-default -n openshift-dns
385-
NAME DESIRED CURRENT READY UP-TO-DATE AVAILABLE NODE SELECTOR AGE
386-
dns-default 7 7 7 7 7 kubernetes.io/os=linux 35d
387-
```
388395

0 commit comments

Comments
 (0)