Inconsistent connection to the server on a EKS cluster. #116
-
I'm using this implementation on a 3 nodes AWS EKS and creating a NLB as the service external endpoint. Sometimes it works fine, peers activate their wireguard connection and are able to use it. However, other times there is no connection going out, so they are required to retry raising the wireguard interface. This problem happens in windows, mac os and ubuntu. The VPN server only has 1 replica and the NLB's target group is showing as unhealthy. Could the service be flapping on the load balancer? Any ideas on how to troubleshoot and fix this problem? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Was able to fix this issue by changing the service annotations to this This way by unspecifying the nlb-target-type, the target group will reference all cluster nodes |
Beta Was this translation helpful? Give feedback.
Was able to fix this issue by changing the service annotations to this
"serviceAnnotations" = { "service.beta.kubernetes.io/aws-load-balancer-scheme" = "internet-facing" "service.beta.kubernetes.io/aws-load-balancer-type" = "nlb" } "serviceType" = "LoadBalancer"
This way by unspecifying the nlb-target-type, the target group will reference all cluster nodes