配置步骤
集群(system)-资源(配置映射)-名称空间kube-system(coredns)
1)进入集群(system)
2)选择资源(配置映射)
3)找到名称空间kube-system下的coredns
4)对coredns进行编辑-添加host
.:53 { errors health ready kubernetes cluster.local in-addr.arpa ip6.arpa { pods insecure fallthrough in-addr.arpa ip6.arpa } prometheus :9153 hosts { 10.211.55.24 gitlab.zbq.com 10.211.55.19 harbor.zbq.com fallthrough } forward . "/etc/resolv.conf" cache 30 loop reload loadbalance }
原文:https://www.cnblogs.com/756623607-zhang/p/13875890.html