kubernetes service 有 selector app=express
Pod 也打上了 lable app=express 但是 发现 service 不生效找不到 endpoint 即 curl cluaster:port conection refused
1 : 检查 kube-proxy 状态
2: 检查 service selector 和 pod lable 是否对应上
3: kubectl get endpoints
原因: 我在pod 中设置了健康检查 readiness 因为单个 容器失败导致pod 节点 notReady
检查对应的 容器就行


相关文章:
-
2021-11-21
-
2022-01-22
-
2021-08-23
-
2021-07-19
-
2022-02-01
-
2022-12-23
-
2021-06-22
猜你喜欢
-
2022-12-23
-
2022-02-06
-
2021-09-01
-
2021-11-26
-
2021-12-24
-
2022-12-23
-
2021-09-26
相关资源
-
下载
2022-12-12
-
下载
2022-12-28
-
下载
2022-12-25