无法访问部署在 aws eks 中的服务

时间:2021-01-08 19:20:42

标签: kubernetes amazon-eks

我已经在 EKS 中部署了用户管理服务,但无法访问。

Input : curl -v http://54.253.213.152:30077/usermgmt/health-status

Output : curl: (7) Failed to connect to 54.253.213.152 port 30077: Connection refused

正在运行的 Pod


mysql-cc94644fc-5g6wq                  1/1     Running   0          19h   192.168.22.212 

usermgt-microsevice-694d677968-bnlsv   1/1     Running   6          19h   192.168.56.62

服务


NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE

kubernetes                 ClusterIP   10.100.0.1      <none>        443/TCP          24h

mysql                      ClusterIP   None            <none>        3306/TCP         20h

usermgmt-restapp-service   NodePort    10.100.202.28   <none>        8095:30077/TCP   20h

具有外部 IP 的节点


名称状态 EXTERNAL-IP

ip-192-168-0-106.ap-southeast-2.compute.internal    Ready  54.253.26.10    

ip-192-168-29-240.ap-southeast-2.compute.internal   Ready  54.79.163.174
ip-192-168-62-151.ap-southeast-2.compute.internal   Ready  54.253.213.152   

添加了安全组

HTTP TCP 80 175.45.149.101/32

All TCP TCP 0 - 65535 175.45.149.101/32

SSH TCP 22 175.45.149.101/32

我也尝试过使用 IP 范围 0.0.0.0,但无法访问该服务。

0 个答案:

没有答案