错误日志如下:
Failed to create pod sandbox: rpc error: code = Unknown desc = failed to set up sandbox container "e47fc88c5a0f7c2d2bba9682ba322e0db276150e5bee6696af26488e51df8131" network for pod "account-web-78849bc9d9-lz7m8": networkPlugin cni failed to set up pod "account-web-78849bc9d9-lz7m8_production" network: error getting ClusterInformation: Get https://[10.96.0.1]:443/apis/crd.projectcalico.org/v1/clusterinformations/default: dial tcp 10.96.0.1:443: i/o timeout
请问如何解决?
10.96.0.1:443 这个应用没启动? 还是 https 协议的,,curl 操作下?
10.96.0.1 是 default 命名空间中的 service/kubernetes 的 IP 地址
# kubectl get all --all-namespaces -o wide | grep 10.96.0.1
default service/kubernetes ClusterIP 10.96.0.1 <none> 443/TCP
详见 https://stackoverflow.com/a/47525313
AFAIK the kubernetes service in the default namespace is a service which forwards requests to the Kubernetes master ( Typically kubernetes API server).
So all the requests to the kubernetes.default service from the cluster will be routed to the configured Endpoint IP. In this scenario its the kubernetes master IP
问题可能与更换 node 服务器时使用同样的主机名有关,当时 delete node 之后很快将1台同样主机名的 node 加入了集群,后来修改主机名重新加入集群后没再出现这个问题
是不是搭建K8s集群的过程中的问题?
搭建好的集群解决 pod 无法启动时遇到的问题