kubernetes重装coredns服务

  sre


删除已有pod

kubectl delete --namespace=kube-system deployment coredns

重新安装

wget https://raw.githubusercontent.com/coredns/deployment/master/kubernetes/coredns.yaml.sed
wget https://raw.githubusercontent.com/coredns/deployment/master/kubernetes/deploy.sh
chmod +x deploy.sh
./deploy.sh | kubectl apply -f -

LEAVE A COMMENT

Captcha Code