我在Kubernetes版本的v3.19.1上运行Calico v1.19.13。该集群使用CentOS Steam 8和RHEL 8操作系统,具有3个主节点和3个节点。
当calico-kube-controller在worker节点上启动时。它在[FATAL][1] main.go 118: Failed to initialize Calico data store错误消息中失败。
我在部署棉布时使用了下面的设置
# Auto-detect the BGP IP address.
- name: IP
value: "autodetect"
- name: IP_AUTODETECTION_METHOD
value: "interface=en.*"
- name: FELIX_IPTABLESBACKEND
value: "NFT"启动时的错误消息:
klf calico-kube-controllers-5978c5f6b5-bxbmw
2021-07-26 15:24:21.353 [INFO][1] main.go 92: Loaded configuration from environment config=&config.Config{LogLevel:"info", WorkloadEndpointWorkers:1, ProfileWorkers:1, PolicyWorkers:1, NodeWorkers:1, Kubeconfig:"", DatastoreType:"kubernetes"}
W0726 15:24:21.356093 1 client_config.go:615] Neither --kubeconfig nor --master was specified. Using the inClusterConfig. This might not work.
2021-07-26 15:24:21.357 [INFO][1] main.go 113: Ensuring Calico datastore is initialized
2021-07-26 15:24:31.357 [ERROR][1] client.go 261: Error getting cluster information config ClusterInformation="default" error=Get "https://10.96.0.1:443/apis/crd.projectcalico.org/v1/clusterinformations/default": context deadline exceeded
2021-07-26 15:24:31.357 [FATAL][1] main.go 118: Failed to initialize Calico datastore error=Get "https://10.96.0.1:443/apis/crd.projectcalico.org/v1/clusterinformations/default": context deadline exceeded有任何解决此错误消息的提示吗?
谢谢SR
发布于 2022-10-18 06:12:35
试试这个你的主节点,这是我的工作。
$ sudo iptables -P INPUT ACCEPT
$ sudo iptables -P FORWARD ACCEPT
$ sudo iptables -P FORWARD ACCEPT
$ sudo iptables -Fhttps://stackoverflow.com/questions/68532639
复制相似问题