目录
一、问题分析
1、查看 cluster ip
# 查看cluster IP
[root@k8s-master-01 pki]# kubectl get svc -o wide
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE SELECTOR
kubernetes ClusterIP 10.1.0.1 <none> 443/TCP 375d <none>
2、问题排查
使用telnet 测试443端口,有2次成功1次失败
[root@k8s-master-01 pki]# telnet 10.1.0.1 443
Trying 10.1.0.1...
telnet: connect to address 10.1.0.1: Connection refused
[root@k8s-master-01 pki]# telnet 10.1.0.1 443
Trying 10.1.0.1...
Connected to 10.1.0.1.
Escape character is '^]'.
^[[A^CConnection closed by foreign host.
[root@k8s-master-01 pki]# telnet 10.1.0.1 443
Trying 10.1.0.1...
Connected to 10.1.0.1.
Escape character is '^]'.