kubectl edit configmap coredns -n kube-system
Coredns_Corefile_Not_ExistCorefile 配置项,升级无法继续。coredns 的 ConfigMap,且包含 Corefile 字段。如缺失,需手动补充标准 Corefile 配置。CoreDNS_Corefile_Format_ErrorCoredns_Plugin_Health_Not_Existhealth 插件。CoreDNS 需要通过 health 插件提供健康检查端点,缺失会导致升级后 Pod 存活检查失败而被反复重启。health 插件:.:53 {healthreadykubernetes cluster.local in-addr.arpa ip6.arpa {...}forward . /etc/resolv.conf...}
Coredns_Plugin_Proxy_Forward_Coexistproxy 和 forward 插件。新版 CoreDNS 已移除 proxy 插件,两者不能共存。proxy 配置,统一使用 forward:.:53 {- proxy . /etc/resolv.conf+ forward . /etc/resolv.conf}
Coredns_Plugin_Rewrite_Compatibility_Issuesrewrite 插件的语法发生了不兼容变更,当前配置需要调整。Coredns_Plugin_Forward_Bad_Resolve_On_Node127.0.0.53。该地址是部分 Ubuntu 系统的本地 DNS 代理地址,在容器环境中不可达,会导致 DNS 转发失败。该地址可能来自 Corefile 中直接配置的上游,也可能来自节点 /etc/resolv.conf(当 Corefile 配置 forward . /etc/resolv.conf 时)。.:53 {- forward . /etc/resolv.conf+ forward . 183.60.83.19 183.60.82.98}
183.60.83.19、183.60.82.98 为腾讯云公共 DNS 服务地址,也可替换为业务自有的 DNS 服务器。Coredns_Plugin_Forward_Upstream_Error.:53 {- forward . /etc/resolv.conf+ forward . 183.60.83.19 183.60.82.98}
Coredns_Plugin_Health_LameDuck_Errorhealth 插件的 lameduck 参数超过 30 秒,可能导致滚动更新时旧 Pod 退出缓慢,拖长升级耗时。health {lameduck 15s}
kubectl edit deployment coredns -n kube-system
Coredns_Container_Not_Standardcoredns 的容器。平台通过该名称定位需要更新的容器,名称不匹配将无法执行升级。name 字段修改为 coredns。Coredns_LivenessProbe_Inconsistenthealth 插件的实际监听地址不匹配,会导致健康检查持续失败,Pod 被反复重启。livenessProbe:httpGet:path: /healthport: 8080scheme: HTTP
Coredns_ReadinessProbe_Inconsistentready 插件的实际监听地址不匹配。readinessProbe:httpGet:path: /readyport: 8181scheme: HTTP
CoreDNS_Insufficient_Cluster_Resourceskubectl uncordon <node-name>Coredns_Incompatible_Version约束条件 | 说明 |
CoreDNS ≥ 1.10.1 | 要求 Kubernetes 版本 ≥ 1.22.4 |
CoreDNS ≥ 1.11.0 | 不支持 Docker 作为容器运行时,需使用 containerd |
Coredns_Non-standard_Version当前版本 | 可升级到 |
1.2.2 | 1.6.2 |
1.6.2 | 1.8.4、1.11.1、1.11.1-tke.1 |
1.7.0 | 1.8.4、1.11.1、1.11.1-tke.1 |
1.8.4 | 1.11.1、1.11.1-tke.1 |
1.8.5 | 1.11.1、1.11.1-tke.1 |
1.11.1 | 1.11.1-tke.1 |
Coredns_KubeProxy_Iptables_Backend_WarningKubernetes 版本 | 最低修复版本 |
1.14.x | v1.14.3-tke.33-rc2 |
1.16.x | v1.16.3-tke.42-rc2 |
1.18.x | v1.18.4-tke.49-rc1 |
1.20.x | v1.20.6-tke.52 |
1.22.x | v1.22.5-tke.33 |
1.24.x | v1.24.4-tke.24 |
≥ 1.26 | 所有版本已修复 |
Coredns_Plugin_Forward_Upstream_Inconsistent_Each_Node/etc/resolv.conf 中 nameserver 配置不一致。当 Corefile 配置 forward . /etc/resolv.conf 时,CoreDNS 在不同节点上的转发行为可能不同。/etc/resolv.conf 配置,或在 Corefile 中显式指定 DNS 服务器地址。也可确认风险后选择跳过。Coredns_KubeProxy_IPVS_Timeout_Warning--ipvs-udp-timeout 未设置或超过 10 秒,可能导致 DNS 解析间歇性超时。--ipvs-udp-timeout=10s,或确认风险后选择跳过。预检项 | 说明 |
Coredns_Cluster_Status | 集群状态异常(非 Running),等待集群恢复后重试即可。 |
Coredns_Cluster_APIServer | 平台无法连接集群 API Server,通常为平台侧问题,如持续出现请提交工单。 |
CoreDNS_Already_Update | 当前版本与目标版本一致,无需升级。 |
Coredns_KubeProxy_Binary_Warning | kube-proxy 为二进制部署,平台无法自动检查其配置,建议人工确认(Warning,可跳过)。 |
Coredns_Plugin_Forward_Upstream_Not_Subset_Metrics | CoreDNS 监控指标中出现非预期的上游 DNS 地址,通常为历史残留,一般无影响(Warning,可跳过)。 |
文档反馈