|NO.Z.00061|——————————|^^ 部署 ^^|——|KuberNetes&二进制部署.V14|3台Server|——|kubernetes组件|coredns|
一、部署CoreDNS
### --- 部署对应版本(推荐)
~~~ 切换到安装目录下
[root@k8s-master01 ~]# cd /root/k8s-ha-install/
二、如果更改了k8s service的网段需要将coredns的serviceIP改成k8s service网段的第十个IP
### --- 更改service网段为coredns的k8s-service的第十个IP
[root@k8s-master01 k8s-ha-install]# sed -i "s#10.96.0.10#10.96.0.10#g" CoreDNS/coredns.yaml
### --- 创建coredns
[root@k8s-master01 k8s-ha-install]# kubectl create -f CoreDNS/coredns.yaml
serviceaccount/coredns created
clusterrole.rbac.authorization.k8s.io/system:coredns created
clusterrolebinding.rbac.authorization.k8s.io/system:coredns created
configmap/coredns created
deployment.apps/coredns created
service/kube-dns created
Walter Savage Landor:strove with none,for none was worth my strife.Nature I loved and, next to Nature, Art:I warm'd both hands before the fire of life.It sinks, and I am ready to depart
——W.S.Landor
浙公网安备 33010602011771号