首页 新闻 会员 周边

k8s pod 总是 CrashLoopBackOff

0
悬赏园豆:30 [待解决问题]

错误日志如下:

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

请问如何解决?

k8s
dudu的主页 dudu | 高人七级 | 园豆:30994
提问于:2021-11-14 15:02
< >
分享
所有回答(3)
0

10.96.0.1:443 这个应用没启动? 还是 https 协议的,,curl 操作下?

快乐的凡人721 | 园豆:3918 (老鸟四级) | 2021-11-14 15:49

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

支持(0) 反对(0) dudu | 园豆:30994 (高人七级) | 2021-11-14 18:53
1

问题可能与更换 node 服务器时使用同样的主机名有关,当时 delete node 之后很快将1台同样主机名的 node 加入了集群,后来修改主机名重新加入集群后没再出现这个问题

dudu | 园豆:30994 (高人七级) | 2021-11-14 18:40
0

是不是搭建K8s集群的过程中的问题?

Captain_Li | 园豆:143 (初学一级) | 2021-11-15 13:18

搭建好的集群解决 pod 无法启动时遇到的问题

支持(0) 反对(0) dudu | 园豆:30994 (高人七级) | 2021-11-15 13:55
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册