Kubernetes - issue with NodePort connectivity

4/13/2020

We are running Kubernetes cluster in AWS. We setup the cluster with Kubeadm without the cloud provider option (like bare metal).

Nginx-ingress controller is exposed as a service over 32000 port as NodePort service. We have configured AWS ALB to pass the external request to the K8s worker node over port 32000.

We have been noticing that worker nodes turn up unhealthy. On investigating further, looks like the NodePort connection seems to be inconsistent. As you can see below, connecting to the same IP on port 32000 works most of the time but just sits in "Trying to connect" often. I am not able to see any error message related to this. Any help is highly appreciated.

[root@ip-10-35-2-205 ~]# telnet 10.35.3.76 32000
Trying 10.35.3.76...
Connected to 10.35.3.76.
Escape character is '^]'.
^CConnection closed by foreign host.

[root@ip-10-35-2-205 ~]# telnet 10.35.3.76 32000
Trying 10.35.3.76...
^C


[root@ip-10-35-2-205 ~]# telnet 10.35.3.76 32000
Trying 10.35.3.76...
Connected to 10.35.3.76.
Escape character is '^]'.
-- Venkatesh Nannan
kubeadm
kubernetes
nginx-ingress

0 Answers