Open typ431127 opened 2 years ago
我也遇到了同样的问题。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
我也遇到了同样的问题。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
和我遇到的报错一样,下次我试试,现在集群可以通信,就先这样了
我也遇到了同样的问题。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
和我遇到的报错一样,下次我试试,现在集群可以通信,就先这样了
嗯,可以参考一下。
文档版本 v16.6
现象描述 部署calico网络出错无法正常安装 calico-kube-controllers 无法初始化 calico-node 无法初始化
calico-kube-controllers日志
calico-node报错
https://github.com/opsnull/follow-me-install-kubernetes-cluster/blob/master/06-6.calico.md 这个问题经过我细心排除,发现calico v3.20.0版本无法访问
kube-api日志中也显示报错
![image](https://user-images.githubusercontent.com/20376675/130355954-35c731c4-299a-4d16-82dc-333b32f6966c.png)
/apis/discovery.k8s.io/v1beta1/endpointslices
资源,在1.16.6版本中,此api资源访问为404。我更换calico-3.10版本后解决了这个问题,全部初始化成功
curl https://docs.projectcalico.org/v3.10/manifests/calico.yaml -O calico-3.10.yml