Skip to content

Commit 8ff787b

Browse files
authored
Merge pull request #49017 from aivantsov/patch-1
Simplify reflecting the CoreDNS changes after updating the CoreDNS Deployment and Service
2 parents ce8a338 + 9083920 commit 8ff787b

File tree

1 file changed

+2
-12
lines changed

1 file changed

+2
-12
lines changed

content/en/docs/tasks/administer-cluster/kubeadm/kubeadm-reconfigure.md

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -202,22 +202,12 @@ kubectl edit service -n kube-system kube-dns
202202

203203
#### Reflecting the CoreDNS changes
204204

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:
214206

215207
```shell
216-
kubectl delete po -n kube-system <pod-name>
208+
kubectl rollout restart deployment -n kube-system coredns
217209
```
218210

219-
New Pods with the updated CoreDNS configuration will be created.
220-
221211
{{< note >}}
222212
kubeadm does not allow CoreDNS configuration during cluster creation and upgrade.
223213
This means that if you execute `kubeadm upgrade apply`, your changes to the CoreDNS

0 commit comments

Comments
 (0)