安装KubeSphere2.1.1,准备使用私有的Harbor仓库,根据安装教程里面修改了coredns的data的host内容,内容如下:
.:53 {
errors
health
hosts {
100.66.23.45 centos7-8c16g1
100.66.23.45 centos7-8c16g1.local
fallthrough
}
ready
kubernetes cluster.local in-addr.arpa ip6.arpa {
pods insecure
upstream /etc/resolv.conf
fallthrough in-addr.arpa ip6.arpa
}
prometheus :9153
forward . /etc/resolv.conf {
prefer_udp
}
cache 30
loop
reload
loadbalance
}
安装好以后把kube-system的coredns重新部署了一下,但是配置密钥的时候用域名依然报no such host。配置IP能通过。