创建CoreDNS
[root@master01 ~]# wget https://zhl123.com/download/k8s/scripts/CoreDNS/coredns.yaml
[root@master01 ~]# kubectl create -f ./coredns.yaml
[root@master01 ~]# kubectl get pod -n kube-system NAME READY STATUS RESTARTS AGE coredns-cd7f66fdc-5xkrr 1/1 Running 0 168m coredns-cd7f66fdc-z4tnq 1/1 Running 0 168m