Tigera Calico 导致 coredns 超时

Tigera Calico 导致 coredns 超时

当我从 helm 安装 tigera-calico 时遇到了问题

https://docs.tigera.io/calico/charts:tigera-operator

当我启动时

kubectl -n kube-system rollout restart 部署 coredns;

我收到此错误:

kubectl run -it --rm busybox --image busybox /bin/sh
/ # nslookup kube-dns.kube-system.svc.cluster.internal
;; connection timed out; no servers could be reached
/ # nslookup google.com
;; connection timed out; no servers could be reached

配置如下:

---
apiVersion: kubeadm.k8s.io/v1beta3
kind: ClusterConfiguration
clusterName: kubernetes
controlPlaneEndpoint: main
kubernetesVersion: 1.29.0
networking:
  dnsDomain: cluster.internal
  podSubnet: 10.128.0.0/9
  serviceSubnet: 172.16.0.0/12
controllerManager:
  extraArgs:
    node-cidr-mask-size: '9'
---
apiVersion: v1
items:
- apiVersion: crd.projectcalico.org/v1
  kind: IPPool
  metadata:
    annotations:
      projectcalico.org/metadata: '{"uid":"43b9bc45-27ef-4319-a143-187057e6ce2c"}'
    generation: 1
    name: default-ipv4-ippool
    resourceVersion: "2334"
    uid: d074f1ff-0896-48bc-97d6-e414c70aeac1
  spec:
    allowedUses:
    - Workload
    - Tunnel
    blockSize: 26
    cidr: 10.128.0.0/9
    ipipMode: Always
    natOutgoing: true
    nodeSelector: all()
    vxlanMode: Never
kind: List
metadata:
  resourceVersion: ""
---

有人有办法解决这个问题吗?谢谢,祝你有个愉快的一天。

相关内容