0
点赞
收藏
分享

微信扫一扫

个人开发者能用TensorFlow做什么

乱世小白 2024-06-03 阅读 7

配置k8s dns

在 Kubernetes 集群中,CoreDNS 是默认的 DNS 服务器,它负责处理集群内所有的 DNS 请求。
kubectl edit cm coredns -n kube-system (此命令修改coredns 配置)
kubectl describe cm coredns -n kube-system(此命令查看coredns 配置)
出现类似以下结果

apiVersion: v1
data:
  Corefile: |
    .:53 {
        errors
        health {
           lameduck 5s
        }
        ready
        kubernetes cluster.local in-addr.arpa ip6.arpa {
           pods insecure
           fallthrough in-addr.arpa ip6.arpa
           ttl 30
        }
        prometheus :9153
        forward . /etc/resolv.conf {
           max_concurrent 1000
        }
        cache 30
        loop
        reload
        loadbalance
    }
kind: ConfigMap
metadata:
  creationTimestamp: "2024-05-11T02:24:34Z"
  name: coredns
  namespace: kube-system
  resourceVersion: "514"
  uid: 04803c22-064c-451e-a88e-425e4cd38cd5

注意:其中
forward . /etc/resolv.

举报

相关推荐

0 条评论