产品动态
公告
产品发布记录
.:53 {template ANY HINFO . {rcode NXDOMAIN}errorshealth {lameduck 30s}readykubernetes cluster.local. in-addr.arpa ip6.arpa {pods insecurefallthrough in-addr.arpa ip6.arpa}prometheus :9153forward . /etc/resolv.conf {prefer_udp}cache 30reloadloadbalance}
Kubernetes 对象名称 | 类型 | 请求资源 | 所属 Namespace |
coredns | Deployment | 每实例100mCPU,30Mi内存 | kube-system |
coredns | ConfigMap | - | kube-system |
kube-dns | Service | - | kube-system |
coredns | ServiceAccount | - | kube-system |
system:coredns | ClusterRole | - | - |
system:coredns | ClusterRoleBinding | - | - |
global.cluster.highAvailability 配置控制 zone 级别拓扑分布约束的强度。普通集群使用软约束(ScheduleAnyway),高可用集群使用硬约束(DoNotSchedule)。功能 | 涉及对象 | 涉及操作权限 |
监听集群内 Service、Pod、Namespace、Endpoint 资源,实现服务发现。 | endpoints、services、pods、namespaces | list/watch |
监听 EndpointSlice 资源(Kubernetes 1.21+ 的服务发现优化)。 | endpointslices | list/watch |
apiVersion: rbac.authorization.k8s.io/v1kind: ClusterRolemetadata:name: system:corednsrules:- apiGroups:- '*'resources:- endpoints- services- pods- namespacesverbs:- list- watch- apiGroups:- discovery.k8s.ioresources:- endpointslicesverbs:- list- watch
configmap/coredns。配置修改后 CoreDNS 会自动热加载,无需重启 Pod。详细配置请参见 CoreDNS 官方文档。参数 | 说明 | 类型 | 默认值 |
global.image.host | 镜像仓库地址 | string | ccr.ccs.tencentyun.com |
global.kubednsClusterIP | kube-dns Service 的 ClusterIP,为空表示自动分配 | string | "" |
global.cluster.highAvailability | 是否为高可用集群(控制 zone 拓扑分布约束强度) | bool | false |
global.podSpec.tolerations | 额外的容忍配置(追加到默认的 CriticalAddonsOnly 之后) | list | [] |
global.podSpec.priorityClassName | Pod 优先级类名 | string | system-cluster-critical |
coredns.replicas | CoreDNS 副本数 | int | 2 |
coredns.hostNetwork | 是否使用主机网络 | bool | false |
coredns.image | 自定义镜像地址,为空表示根据 Kubernetes 版本自动选择 | string | "" |
coredns.server.port | DNS 服务端口 | int | 53 |
coredns.livenessProbe.port | 存活探针端口 | int | 8080 |
coredns.readinessProbe.port | 就绪探针端口 | int | 8181 |
coredns.resources.requests.cpu | CPU 请求 | string | 100m |
coredns.resources.requests.mem | 内存请求 | string | 30Mi |
coredns.resources.limits.cpu | CPU 限制,为空表示不设置 | string | "" |
coredns.resources.limits.mem | 内存限制 | string | 2Gi |
文档反馈