Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

calico部署最新版api不支持kubernetes 1.16.6 #633

Open
typ431127 opened this issue Aug 22, 2021 · 3 comments
Open

calico部署最新版api不支持kubernetes 1.16.6 #633

typ431127 opened this issue Aug 22, 2021 · 3 comments

Comments

@typ431127
Copy link

文档版本
v16.6

现象描述
部署calico网络出错无法正常安装
calico-kube-controllers 无法初始化
calico-node 无法初始化
image
calico-kube-controllers日志

2021-08-22 12:57:12.966 [ERROR][1] client.go 261: Error getting cluster information config ClusterInformation="default" error=Get "https://10.254.0.1:443/apis/crd.projectcalico.org/v1/clusterinformations/default": context deadline exceeded
2021-08-22 12:57:12.966 [FATAL][1] main.go 120: Failed to initialize Calico datastore error=Get "https://10.254.0.1:443/apis/crd.projectcalico.org/v1/clusterinformations/default": context deadline exceeded
2021-08-22 12:57:25.962 [INFO][1] main.go 94: Loaded configuration from environment config=&config.Config{LogLevel:"info", WorkloadEndpointWorkers:1, ProfileWorkers:1, PolicyWorkers:1, NodeWorkers:1, Kubeconfig:"", DatastoreType:"kubernetes"}
W0822 12:57:25.963646 1 client_config.go:615] Neither --kubeconfig nor --master was specified. Using the inClusterConfig. This might not work.
2021-08-22 12:57:25.964 [INFO][1] main.go 115: Ensuring Calico datastore is initialized

calico-node报错

felix/watchercache.go 186: Failed to perform list of current data during resync ListRoot="/calico/resources/v3/projectcalico.org/kubernetesendpointslices" error=resource does not exist: KubernetesEndpointSlice with error: the server could not find the requested resour

https://github.com/opsnull/follow-me-install-kubernetes-cluster/blob/master/06-6.calico.md
这个问题经过我细心排除,发现calico v3.20.0版本无法访问/apis/discovery.k8s.io/v1beta1/endpointslices资源,在1.16.6版本中,此api资源访问为404。
image
kube-api日志中也显示报错
image

我更换calico-3.10版本后解决了这个问题,全部初始化成功
curl https://docs.projectcalico.org/v3.10/manifests/calico.yaml -O calico-3.10.yml

image

@trotyoung
Copy link

trotyoung commented Aug 26, 2021

我也遇到了同样的问题。calico-node提示 探针无法通过,无法正常启动,可以在容器中执行探针命令,返回503。
我参考calico官方文档,换成etcd后端后部署成功了。
https://docs.projectcalico.org/getting-started/kubernetes/self-managed-onprem/onpremises#install-calico-with-etcd-datastore
报错情况如下

2021-08-25 13:31:29.337 [WARNING][53] felix/health.go 188: Reporter is not ready. name="int_dataplane"
2021-08-25 13:31:29.337 [WARNING][53] felix/health.go 188: Reporter is not ready. name="async_calc_graph"
2021-08-25 13:31:30.047 [INFO][53] felix/watchercache.go 174: Full resync is required ListRoot="/calico/resources/v3/projectcalico.org/kubernetesendpointslices"
2021-08-25 13:31:30.049 [INFO][53] felix/kubeendpointslice.go 101: Unable to list K8s EndpointSlice resources error=the server could not find the requested resource
2021-08-25 13:31:30.049 [INFO][53] felix/watchercache.go 186: Failed to perform list of current data during resync ListRoot="/calico/resources/v3/projectcalico.org/kubernetesendpointslices" error=resource does not exist: KubernetesEndpointSlice with error: the server could not find the requested resource
2021-08-25 13:31:31.050 [INFO][53] felix/watchercache.go 174: Full resync is required ListRoot="/calico/resources/v3/projectcalico.org/kubernetesendpointslices"
2021-08-25 13:31:31.052 [INFO][53] felix/kubeendpointslice.go 101: Unable to list K8s EndpointSlice resources error=the server could not find the requested resource
2021-08-25 13:31:31.052 [INFO][53] felix/watchercache.go 186: Failed to perform list of current data during resync ListRoot="/calico/resources/v3/projectcalico.org/kubernetesendpointslices" error=resource does not exist: KubernetesEndpointSlice with error: the server could not find the requested resource
2021-08-25 13:31:32.052 [INFO][53] felix/watchercache.go 174: Full resync is required ListRoot="/calico/resources/v3/projectcalico.org/kubernetesendpointslices"
2021-08-25 13:31:32.054 [INFO][53] felix/kubeendpointslice.go 101: Unable to list K8s EndpointSlice resources error=the server could not find the requested resource
2021-08-25 13:31:32.054 [INFO][53] felix/watchercache.go 186: Failed to perform list of current data during resync ListRoot="/calico/resources/v3/projectcalico.org/kubernetesendpointslices" error=resource does not exist: KubernetesEndpointSlice with error: the server could not find the requested resource
2021-08-25 13:31:33.055 [INFO][53] felix/watchercache.go 174: Full resync is required ListRoot="/calico/resources/v3/projectcalico.org/kubernetesendpointslices"
2021-08-25 13:31:33.062 [INFO][53] felix/kubeendpointslice.go 101: Unable to list K8s EndpointSlice resources error=the server could not find the requested resource
2021-08-25 13:31:33.062 [INFO][53] felix/watchercache.go 186: Failed to perform list of current data during resync ListRoot="/calico/resources/v3/projectcalico.org/kubernetesendpointslices" error=resource does not exist: KubernetesEndpointSlice with error: the server could not find the requested resource
2021-08-25 13:31:34.063 [INFO][53] felix/watchercache.go 174: Full resync is required ListRoot="/calico/resources/v3/projectcalico.org/kubernetesendpointslices"
2021-08-25 13:31:34.065 [INFO][53] felix/kubeendpointslice.go 101: Unable to list K8s EndpointSlice resources error=the server could not find the requested resource
2021-08-25 13:31:34.065 [INFO][53] felix/watchercache.go 186: Failed to perform list of current data during resync ListRoot="/calico/resources/v3/projectcalico.org/kubernetesendpointslices" error=resource does not exist: KubernetesEndpointSlice with error: the server could not find the requested resource
2021-08-25 13:31:35.062 [WARNING][53] felix/health.go 188: Reporter is not ready. name="int_dataplane"
2021-08-25 13:31:35.062 [WARNING][53] felix/health.go 188: Reporter is not ready. name="async_calc_graph"
2021-08-25 13:31:35.062 [WARNING][53] felix/health.go 154: Health: not ready
2021-08-25 13:31:35.065 [INFO][53] felix/watchercache.go 174: Full resync is required ListRoot="/calico/resources/v3/projectcalico.org/kubernetesendpointslices"
2021-08-25 13:31:35.067 [INFO][53] felix/kubeendpointslice.go 101: Unable to list K8s EndpointSlice resources error=the server could not find the requested resource
2021-08-25 13:31:35.068 [INFO][53] felix/watchercache.go 186: Failed to perform list of current data during resync ListRoot="/calico/resources/v3/projectcalico.org/kubernetesendpointslices" error=resource does not exist: KubernetesEndpointSlice with error: the server could not find the requested resource

@typ431127
Copy link
Author

我也遇到了同样的问题。calico-node提示 探针无法通过,无法正常启动,可以在容器中执行探针命令,返回503。
我参考calico官方文档,换成etcd后端后部署成功了。
https://docs.projectcalico.org/getting-started/kubernetes/self-managed-onprem/onpremises#install-calico-with-etcd-datastore
报错情况如下

2021-08-25 13:31:29.337 [WARNING][53] felix/health.go 188: Reporter is not ready. name="int_dataplane"
2021-08-25 13:31:29.337 [WARNING][53] felix/health.go 188: Reporter is not ready. name="async_calc_graph"
2021-08-25 13:31:30.047 [INFO][53] felix/watchercache.go 174: Full resync is required ListRoot="/calico/resources/v3/projectcalico.org/kubernetesendpointslices"
2021-08-25 13:31:30.049 [INFO][53] felix/kubeendpointslice.go 101: Unable to list K8s EndpointSlice resources error=the server could not find the requested resource
2021-08-25 13:31:30.049 [INFO][53] felix/watchercache.go 186: Failed to perform list of current data during resync ListRoot="/calico/resources/v3/projectcalico.org/kubernetesendpointslices" error=resource does not exist: KubernetesEndpointSlice with error: the server could not find the requested resource
2021-08-25 13:31:31.050 [INFO][53] felix/watchercache.go 174: Full resync is required ListRoot="/calico/resources/v3/projectcalico.org/kubernetesendpointslices"
2021-08-25 13:31:31.052 [INFO][53] felix/kubeendpointslice.go 101: Unable to list K8s EndpointSlice resources error=the server could not find the requested resource
2021-08-25 13:31:31.052 [INFO][53] felix/watchercache.go 186: Failed to perform list of current data during resync ListRoot="/calico/resources/v3/projectcalico.org/kubernetesendpointslices" error=resource does not exist: KubernetesEndpointSlice with error: the server could not find the requested resource
2021-08-25 13:31:32.052 [INFO][53] felix/watchercache.go 174: Full resync is required ListRoot="/calico/resources/v3/projectcalico.org/kubernetesendpointslices"
2021-08-25 13:31:32.054 [INFO][53] felix/kubeendpointslice.go 101: Unable to list K8s EndpointSlice resources error=the server could not find the requested resource
2021-08-25 13:31:32.054 [INFO][53] felix/watchercache.go 186: Failed to perform list of current data during resync ListRoot="/calico/resources/v3/projectcalico.org/kubernetesendpointslices" error=resource does not exist: KubernetesEndpointSlice with error: the server could not find the requested resource
2021-08-25 13:31:33.055 [INFO][53] felix/watchercache.go 174: Full resync is required ListRoot="/calico/resources/v3/projectcalico.org/kubernetesendpointslices"
2021-08-25 13:31:33.062 [INFO][53] felix/kubeendpointslice.go 101: Unable to list K8s EndpointSlice resources error=the server could not find the requested resource
2021-08-25 13:31:33.062 [INFO][53] felix/watchercache.go 186: Failed to perform list of current data during resync ListRoot="/calico/resources/v3/projectcalico.org/kubernetesendpointslices" error=resource does not exist: KubernetesEndpointSlice with error: the server could not find the requested resource
2021-08-25 13:31:34.063 [INFO][53] felix/watchercache.go 174: Full resync is required ListRoot="/calico/resources/v3/projectcalico.org/kubernetesendpointslices"
2021-08-25 13:31:34.065 [INFO][53] felix/kubeendpointslice.go 101: Unable to list K8s EndpointSlice resources error=the server could not find the requested resource
2021-08-25 13:31:34.065 [INFO][53] felix/watchercache.go 186: Failed to perform list of current data during resync ListRoot="/calico/resources/v3/projectcalico.org/kubernetesendpointslices" error=resource does not exist: KubernetesEndpointSlice with error: the server could not find the requested resource
2021-08-25 13:31:35.062 [WARNING][53] felix/health.go 188: Reporter is not ready. name="int_dataplane"
2021-08-25 13:31:35.062 [WARNING][53] felix/health.go 188: Reporter is not ready. name="async_calc_graph"
2021-08-25 13:31:35.062 [WARNING][53] felix/health.go 154: Health: not ready
2021-08-25 13:31:35.065 [INFO][53] felix/watchercache.go 174: Full resync is required ListRoot="/calico/resources/v3/projectcalico.org/kubernetesendpointslices"
2021-08-25 13:31:35.067 [INFO][53] felix/kubeendpointslice.go 101: Unable to list K8s EndpointSlice resources error=the server could not find the requested resource
2021-08-25 13:31:35.068 [INFO][53] felix/watchercache.go 186: Failed to perform list of current data during resync ListRoot="/calico/resources/v3/projectcalico.org/kubernetesendpointslices" error=resource does not exist: KubernetesEndpointSlice with error: the server could not find the requested resource

和我遇到的报错一样,下次我试试,现在集群可以通信,就先这样了

@trotyoung
Copy link

我也遇到了同样的问题。calico-node提示 探针无法通过,无法正常启动,可以在容器中执行探针命令,返回503。
我参考calico官方文档,换成etcd后端后部署成功了。
https://docs.projectcalico.org/getting-started/kubernetes/self-managed-onprem/onpremises#install-calico-with-etcd-datastore
报错情况如下

2021-08-25 13:31:29.337 [WARNING][53] felix/health.go 188: Reporter is not ready. name="int_dataplane"
2021-08-25 13:31:29.337 [WARNING][53] felix/health.go 188: Reporter is not ready. name="async_calc_graph"
2021-08-25 13:31:30.047 [INFO][53] felix/watchercache.go 174: Full resync is required ListRoot="/calico/resources/v3/projectcalico.org/kubernetesendpointslices"
2021-08-25 13:31:30.049 [INFO][53] felix/kubeendpointslice.go 101: Unable to list K8s EndpointSlice resources error=the server could not find the requested resource
2021-08-25 13:31:30.049 [INFO][53] felix/watchercache.go 186: Failed to perform list of current data during resync ListRoot="/calico/resources/v3/projectcalico.org/kubernetesendpointslices" error=resource does not exist: KubernetesEndpointSlice with error: the server could not find the requested resource
2021-08-25 13:31:31.050 [INFO][53] felix/watchercache.go 174: Full resync is required ListRoot="/calico/resources/v3/projectcalico.org/kubernetesendpointslices"
2021-08-25 13:31:31.052 [INFO][53] felix/kubeendpointslice.go 101: Unable to list K8s EndpointSlice resources error=the server could not find the requested resource
2021-08-25 13:31:31.052 [INFO][53] felix/watchercache.go 186: Failed to perform list of current data during resync ListRoot="/calico/resources/v3/projectcalico.org/kubernetesendpointslices" error=resource does not exist: KubernetesEndpointSlice with error: the server could not find the requested resource
2021-08-25 13:31:32.052 [INFO][53] felix/watchercache.go 174: Full resync is required ListRoot="/calico/resources/v3/projectcalico.org/kubernetesendpointslices"
2021-08-25 13:31:32.054 [INFO][53] felix/kubeendpointslice.go 101: Unable to list K8s EndpointSlice resources error=the server could not find the requested resource
2021-08-25 13:31:32.054 [INFO][53] felix/watchercache.go 186: Failed to perform list of current data during resync ListRoot="/calico/resources/v3/projectcalico.org/kubernetesendpointslices" error=resource does not exist: KubernetesEndpointSlice with error: the server could not find the requested resource
2021-08-25 13:31:33.055 [INFO][53] felix/watchercache.go 174: Full resync is required ListRoot="/calico/resources/v3/projectcalico.org/kubernetesendpointslices"
2021-08-25 13:31:33.062 [INFO][53] felix/kubeendpointslice.go 101: Unable to list K8s EndpointSlice resources error=the server could not find the requested resource
2021-08-25 13:31:33.062 [INFO][53] felix/watchercache.go 186: Failed to perform list of current data during resync ListRoot="/calico/resources/v3/projectcalico.org/kubernetesendpointslices" error=resource does not exist: KubernetesEndpointSlice with error: the server could not find the requested resource
2021-08-25 13:31:34.063 [INFO][53] felix/watchercache.go 174: Full resync is required ListRoot="/calico/resources/v3/projectcalico.org/kubernetesendpointslices"
2021-08-25 13:31:34.065 [INFO][53] felix/kubeendpointslice.go 101: Unable to list K8s EndpointSlice resources error=the server could not find the requested resource
2021-08-25 13:31:34.065 [INFO][53] felix/watchercache.go 186: Failed to perform list of current data during resync ListRoot="/calico/resources/v3/projectcalico.org/kubernetesendpointslices" error=resource does not exist: KubernetesEndpointSlice with error: the server could not find the requested resource
2021-08-25 13:31:35.062 [WARNING][53] felix/health.go 188: Reporter is not ready. name="int_dataplane"
2021-08-25 13:31:35.062 [WARNING][53] felix/health.go 188: Reporter is not ready. name="async_calc_graph"
2021-08-25 13:31:35.062 [WARNING][53] felix/health.go 154: Health: not ready
2021-08-25 13:31:35.065 [INFO][53] felix/watchercache.go 174: Full resync is required ListRoot="/calico/resources/v3/projectcalico.org/kubernetesendpointslices"
2021-08-25 13:31:35.067 [INFO][53] felix/kubeendpointslice.go 101: Unable to list K8s EndpointSlice resources error=the server could not find the requested resource
2021-08-25 13:31:35.068 [INFO][53] felix/watchercache.go 186: Failed to perform list of current data during resync ListRoot="/calico/resources/v3/projectcalico.org/kubernetesendpointslices" error=resource does not exist: KubernetesEndpointSlice with error: the server could not find the requested resource

和我遇到的报错一样,下次我试试,现在集群可以通信,就先这样了

嗯,可以参考一下。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants