Closed getoutout closed 5 years ago
I'm having the same issue, I'm using this chart inside Rancher 2. Do you have some clue on this behavior?
I solved it by enabling UDP protocol.
$ helm install --set openvpn.OVPN_PROTO=udp stable/openvpn
I solved it by enabling UDP protocol.
$ helm install --set openvpn.OVPN_PROTO=udp stable/openvpn
C:\Users\admin>nslookup kubernetes.default.svc.cluster.local DNS request timed out. timeout was 2 seconds. 服务器: UnKnown Address: 10.96.0.10
DNS request timed out. timeout was 2 seconds. DNS request timed out. timeout was 2 seconds. DNS request timed out. timeout was 2 seconds. DNS request timed out. timeout was 2 seconds. *** 请求 UnKnown 超时
I solved it by enabling UDP protocol.
$ helm install --set openvpn.OVPN_PROTO=udp stable/openvpn
This solution does not work on AWS due to services not supporting UDP. EKS does not get it. https://github.com/kubernetes/kubernetes/issues/79523
I am also facing the same issue , connection reset problem is resolved by switching to UDP protocol but not able to connect to services on ClusterIP not did on pod ip's , Just for information i am working on a GKE private cluster
In my case when I'm switching to udp I get these logs:
Info 2020-11-23 11:37:35.489 CET Mon Nov 23 10:37:35 2020 /sbin/ip route del 10.240.0.0/16
Error 2020-11-23 11:37:35.489 CET RTNETLINK answers: Operation not permitted
Info 2020-11-23 11:37:35.489 CET Mon Nov 23 10:37:35 2020 ERROR: Linux route delete command failed: external program exited with error status: 2
Info 2020-11-23 11:37:35.489 CET Mon Nov 23 10:37:35 2020 Closing TUN/TAP interface
Info 2020-11-23 11:37:35.489 CET Mon Nov 23 10:37:35 2020 /sbin/ip addr del dev tun0 local 10.240.0.1 peer 10.240.0.2
Info 2020-11-23 11:37:35.489 CET Mon Nov 23 10:37:35 2020 Linux ip addr del failed: external program exited with error status: 2
Error 2020-11-23 11:37:35.489 CET RTNETLINK answers: Operation not permitted
Info 2020-11-23 11:37:35.501 CET Mon Nov 23 10:37:35 2020 SIGTERM[hard,] received, process exiting
If I keep tcp I'am able to open a session but not able to call clusterIp of my pods (connection timeout).
The initial issue is caused by the readiness check nc -z 127.0.0.1 443
which has a 5 second interval, thus the log gets created each 5 seconds
request for help
[root@master ~]# helm list NAME REVISION UPDATED STATUS CHART APP VERSION NAMESPACE
invincible-mite 1 Fri Aug 23 18:27:30 2019 DEPLOYED nginx-ingress-1.8.1 0.24.1 default
nginx-ingress 5 Sun Aug 25 17:10:47 2019 DEPLOYED nginx-ingress-1.8.1 0.24.1 ingress-nginx openvpn 1 Sun Aug 25 20:46:56 2019 DEPLOYED openvpn-3.13.8 1.1.0 kube-system
[root@master ~]# helm version Client: &version.Version{SemVer:"v2.14.3", GitCommit:"0e7f3b6637f7af8fcfddb3d2941fcc7cbebb0085", GitTreeState:"clean"} Server: &version.Version{SemVer:"v2.14.3", GitCommit:"0e7f3b6637f7af8fcfddb3d2941fcc7cbebb0085", GitTreeState:"clean"} [root@master ~]# kubectl version Client Version: version.Info{Major:"1", Minor:"15", GitVersion:"v1.15.3", GitCommit:"2d3c76f9091b6bec110a5e63777c332469e0cba2", GitTreeState:"clean", BuildDate:"2019-08-19T11:13:54Z", GoVersion:"go1.12.9", Compiler:"gc", Platform:"linux/amd64"} Server Version: version.Info{Major:"1", Minor:"15", GitVersion:"v1.15.3", GitCommit:"2d3c76f9091b6bec110a5e63777c332469e0cba2", GitTreeState:"clean", BuildDate:"2019-08-19T11:05:50Z", GoVersion:"go1.12.9", Compiler:"gc", Platform:"linux/amd64"}
What happened: client log: Sun Aug 25 13:28:00 2019 127.0.0.1:35876 SIGUSR1[soft,connection-reset] received, client-instance restarting Sun Aug 25 13:28:05 2019 TCP connection established with [AF_INET]127.0.0.1:44268 Sun Aug 25 13:28:05 2019 127.0.0.1:44268 Connection reset, restarting [0] Sun Aug 25 13:28:05 2019 127.0.0.1:44268 SIGUSR1[soft,connection-reset] received, client-instance restarting Sun Aug 25 13:28:10 2019 TCP connection established with [AF_INET]127.0.0.1:41946 Sun Aug 25 13:28:10 2019 127.0.0.1:41946 Connection reset, restarting [0] Sun Aug 25 13:28:10 2019 127.0.0.1:41946 SIGUSR1[soft,connection-reset] received, client-instance restarting Sun Aug 25 13:28:15 2019 TCP connection established with [AF_INET]127.0.0.1:42429 Sun Aug 25 13:28:15 2019 127.0.0.1:42429 Connection reset, restarting [0] Sun Aug 25 13:28:15 2019 127.0.0.1:42429 SIGUSR1[soft,connection-reset] received, client-instance restarting Sun Aug 25 13:28:20 2019 TCP connection established with [AF_INET]127.0.0.1:39077 Sun Aug 25 13:28:20 2019 127.0.0.1:39077 Connection reset, restarting [0] Sun Aug 25 13:28:20 2019 127.0.0.1:39077 SIGUSR1[soft,connection-reset] received, client-instance restarting Sun Aug 25 13:28:25 2019 TCP connection established with [AF_INET]127.0.0.1:43794 Sun Aug 25 13:28:25 2019 127.0.0.1:43794 Connection reset, restarting [0] Sun Aug 25 13:28:25 2019 127.0.0.1:43794 SIGUSR1[soft,connection-reset] received, client-instance restarting Sun Aug 25 13:28:30 2019 TCP connection established with [AF_INET]127.0.0.1:42780 Sun Aug 25 13:28:30 2019 127.0.0.1:42780 Connection reset, restarting [0] Sun Aug 25 13:28:30 2019 127.0.0.1:42780 SIGUSR1[soft,connection-reset] received, client-instance restarting Sun Aug 25 13:28:35 2019 TCP connection established with [AF_INET]127.0.0.1:46862 Sun Aug 25 13:28:35 2019 127.0.0.1:46862 Connection reset, restarting [0] Sun Aug 25 13:28:35 2019 127.0.0.1:46862 SIGUSR1[soft,connection-reset] received, client-instance restarting Sun Aug 25 13:28:40 2019 TCP connection established with [AF_INET]127.0.0.1:38739 Sun Aug 25 13:28:40 2019 127.0.0.1:38739 Connection reset, restarting [0] Sun Aug 25 13:28:40 2019 127.0.0.1:38739 SIGUSR1[soft,connection-reset] received, client-instance restarting Sun Aug 25 13:28:45 2019 TCP connection established with [AF_INET]127.0.0.1:35464 Sun Aug 25 13:28:45 2019 127.0.0.1:35464 Connection reset, restarting [0] Sun Aug 25 13:28:45 2019 127.0.0.1:35464 SIGUSR1[soft,connection-reset] received, client-instance restarting Sun Aug 25 13:28:50 2019 TCP connection established with [AF_INET]127.0.0.1:41096 Sun Aug 25 13:28:50 2019 127.0.0.1:41096 Connection reset, restarting [0] Sun Aug 25 13:28:50 2019 127.0.0.1:41096 SIGUSR1[soft,connection-reset] received, client-instance restarting Sun Aug 25 13:28:55 2019 TCP connection established with [AF_INET]127.0.0.1:39045 Sun Aug 25 13:28:55 2019 127.0.0.1:39045 Connection reset, restarting [0] Sun Aug 25 13:28:55 2019 127.0.0.1:39045 SIGUSR1[soft,connection-reset] received, client-instance restarting ......