EKS AWS kubernetes issues -getsockopt: *connection timed out*


I did deployed latest common code on my AWS EKS  Kubernetes cluster environment which shared by developer. After that we are facing issue to access following error.
I did searched on google about it, many people faced the same issue.

[root@mysystem]# kubectl logs deploy-myapp-fc96cd6f4-pftjp

Error from server: Get https://10.0.2.22:10250/containerLogs/on-services/deploy-myapp-fc96cd6f4-pftjp/deploy-myapp: dial tcp 10.0.2.22:10250: getsockopt: *connection timed out*

Error from server: Get https:// /containerLogs///deploy-myapp: dial tcp :10250: getsockopt: *connection timed out*

Due to internal network issue in kubernetes cluster this issue occured. I tried to fix using   "upgrade the Amazon VPC CNI Plugin for Kubernetes"  but that not worked. Removed cluster node, but not touch to existing deployment and configuration .

Solution:-
1) Delete all worker node using kubectl command. All deployed services status will be shown as pending.
2) Delete Cloud-formation stack which is used for worker node creation. 
3) Follow same instruction for worker node creation using cloud-formation.
        https://docs.aws.amazon.com/eks/latest/userguide/launch-workers.html
4) Join worker node.
5)  All previous configuration automatically set by master.

When we create new nodes and add to cluster. All previous configuration automatically set by system (Kubernetes).

Comments