kubernetes 1.11.2安裝配置Core-DNS

當前已經開啓ipvs的kube-proxy,集羣DNS的IP爲10.254.0.2
集羣DNS IP可以查看kubelet服務的配置中查看

下載coredns項目的kubernetes
wget https://github.com/coredns/deployment/archive/master.zip
yum -y install unzip
unzip master.zip

因爲項目使用了jq命令,需要安裝jq程序
由於jq來源於epel,因此需要安裝擴展的yum倉庫
rpm -ivh http://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
yum -y install jq

上面下載master.zip解壓縮至deployment-master文件夾
cd deployment-master/kubernetes
./deploy.sh -i 10.254.0.2 | kubectl apply -f -

查看日誌發現
Sep 11 22:01:05 node210 kube-proxy: E0911 22:01:05.726990 860 proxier.go:1451] Failed to delete kube-system/kube-dns:dns endpoint connections, error: error deleting conntrack entries for UDP peer {10.254.0.2, 172.30.17.3}, error: error looking for path of conntrack: exec: "conntrack": executable file not found in $PATH

可以看到缺少conntrack文件
yum -y install conntrack-tools

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章