Skip to content

Commit b0e6a79

Browse files
authored
Simplify reflecting the CoreDNS changes after updating the CoreDNS Deployment and Service
1 parent cd9b5fe commit b0e6a79

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

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

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -204,16 +204,8 @@ kubectl edit service -n kube-system kube-dns
204204

205205
Once the CoreDNS changes are applied you can delete the CoreDNS Pods:
206206

207-
Obtain the Pod names:
208-
209-
```shell
210-
kubectl get po -n kube-system | grep coredns
211-
```
212-
213-
Delete a Pod with:
214-
215207
```shell
216-
kubectl delete po -n kube-system <pod-name>
208+
kubectl delete po -n kube-system -l k8s-app=kube-dns
217209
```
218210

219211
New Pods with the updated CoreDNS configuration will be created.

0 commit comments

Comments
 (0)