我在本地管理程序上的VM上安装了一个带有k3sup的kubernetes集群,并且吊舱已经启动并运行。现在,我想在牧场主的最新版本(2.6)中添加一个部署,以便根据本指南管理另一个集群。但是DNS和IP返回404找不到。
下面是一些终端命令,其结果可能会有所帮助。
$kubectl -n cattle-system get deploy rancher
NAME READY UP-TO-DATE AVAILABLE AGE
rancher 3/3 3 3 5d3h$kubectl get pods -n cattle-system -o wide
NAME READY STATUS RESTARTS AGE IP NODE NOMINATED NODE READINESS GATES
rancher-webhook-7f84b74ddb-44449 1/1 Running 1 5d20h 10.42.0.44 k8s-rancher
rancher-87d4dc99d-94hqb 1/1 Running 20 5d20h 10.42.0.42 k8s-rancher
rancher-87d4dc99d-b5fm2 1/1 Running 17 5d20h 10.42.0.45 k8s-rancher
rancher-87d4dc99d-dxmfl 1/1 Running 17 5d20h 10.42.0.41 k8s-rancher 我认为,许多重新启动的原因是缺少到websocket的连接。
$kubectl -n cattle-system logs rancher-87d4dc99d-94hqb
... [repeating the connection failure on all 3 pods]
2021/10/04 23:29:13 [ERROR] Failed to connect to peer wss://10.42.0.45/v3/connect [local ID=10.42.0.42]: dial tcp 10.42.0.45:443: connect: no route to host在容器中,我无法访问另一个服务器的IP。
$kubectl exec --stdin -n cattle-system --tty rancher-87d4dc99d-94hqb -- /bin/bash
[in the container]$ curl 10.42.0.45
curl: (7) Failed to connect to 10.42.0.45 port 80: No route to host我该怎么做才能让它起作用?提前谢谢你的帮助。
https://serverfault.com/questions/1079556
复制相似问题