其他分享
首页 > 其他分享> > k8s集群中的坑

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
    }

标签:...,kube,arpa,system,集群,coredns,k8s,114.114
来源: https://www.cnblogs.com/5iwkt/p/14014819.html