File tree Expand file tree Collapse file tree 1 file changed +2
-12
lines changed
content/en/docs/tasks/administer-cluster/kubeadm Expand file tree Collapse file tree 1 file changed +2
-12
lines changed Original file line number Diff line number Diff line change @@ -202,22 +202,12 @@ kubectl edit service -n kube-system kube-dns
202
202
203
203
#### Reflecting the CoreDNS changes
204
204
205
- Once the CoreDNS changes are applied you can delete the CoreDNS Pods:
206
-
207
- Obtain the Pod names:
208
-
209
- ``` shell
210
- kubectl get po -n kube-system | grep coredns
211
- ```
212
-
213
- Delete a Pod with:
205
+ Once the CoreDNS changes are applied you can restart the CoreDNS deployment:
214
206
215
207
``` shell
216
- kubectl delete po -n kube-system < pod-name >
208
+ kubectl rollout restart deployment -n kube-system coredns
217
209
```
218
210
219
- New Pods with the updated CoreDNS configuration will be created.
220
-
221
211
{{< note >}}
222
212
kubeadm does not allow CoreDNS configuration during cluster creation and upgrade.
223
213
This means that if you execute ` kubeadm upgrade apply ` , your changes to the CoreDNS
You can’t perform that action at this time.
0 commit comments