对kubernetes集群中的Pod IP的卷曲请求被拒绝

时间:2020-08-31 17:07:42

标签: kubernetes

我有一个提供此类服务的k8s集群:

    $ kubectl get pods -o wide
NAME                                READY   STATUS    RESTARTS   AGE   IP            NODE                         NOMINATED NODE   READINESS GATES
oauth2-proxy-example-0              1/1     Running   2          13m   10.244.0.12   oauth2-proxy-control-plane   <none>           <none>
oauth2-proxy-example-postgresql-0   1/1     Running   0          13m   10.244.0.15   oauth2-proxy-control-plane   <none>           <none>

由于某些原因,例如从其他Pod中拒绝向IP发出卷曲:

   curl -v 10.244.0.12:80 -o /dev/nul
* Expire in 0 ms for 6 (transfer 0x56369b6b0f50)
*   Trying 10.244.0.12...
* TCP_NODELAY set
* Expire in 200 ms for 4 (transfer 0x56369b6b0f50)
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0* connect to 10.244.0.12 port 80 failed: Connection refused
* Failed to connect to 10.244.0.12 port 80: Connection refused
* Closing connection 0
curl: (7) Failed to connect to 10.244.0.12 port 80: Connection refused


 kubectl get pods oauth2-proxy-example-0  -o yaml

https://pastebin.com/v6yRV0nM-这是输出(很抱歉,请直接在此处添加)

卷曲此pod IP可能是什么问题?

0 个答案:

没有答案
相关问题