k8s集群中的坑

无法访问上游DNS服务器

修改kube-system命名空间的Config Map:coredns

kind: ConfigMap
apiVersion: v1
metadata:
  name: coredns
  namespace: kube-system
  selfLink: ...
  uid: ...
  resourceVersion: ...
  creationTimestamp: ...
data:
  Corefile: |
    .:53 {
        errors
        ready
        health
        forward . 114.114.114.114
        kubernetes cluster.local in-addr.arpa ip6.arpa {
          pods insecure
        }
        cache 30
        reload
        loadbalance
    }
上一篇:修改coreDNS配置,实现k8s集群全局域名映射


下一篇:Coredns 添加自定义DNS解析记录