I installed ziti-edge-tunnel in my Kubernetes cluster with helm (OpenZiti Helm Charts | helm-charts) and found that it needs to be restarted periodically because it loses connection to the controller:
WARN ziti-sdk:ziti_ctrl.c:180 ctrl_resp_cb() ctrl[some.domain.com:1280[] request failed: -110(connection timed out)
ERROR ziti-sdk:ziti.c:1290 edge_routers_cb() ztx[0[] failed to get current edge routers: code[0[] CONTROLLER_UNAVAILABLE/connection timed out
WARN ziti-sdk:ziti_ctrl.c:180 ctrl_resp_cb() ctrl[some.domain.com:1280[] request failed: -110(connection timed out)
INFO ziti-sdk:ziti_ctrl.c:183 ctrl_resp_cb() ctrl[some.domain.com:1280[] attempting to switch endpoint
WARN ziti-sdk:ziti_ctrl.c:566 ctrl_next_ep() ctrl[some.domain.com:1280[] no controllers are online
WARN ziti-sdk:ziti.c:1238 check_service_update() ztx[0[] failed to poll service updates: code[0[] err[-16/connection timed out]
Moreover, if you access the console of the openziti-ziti-edge-tunnel-29qz5
container and install netcat, you can see that both the controller and the router, as well as the service it needs to connect to, are reachable for it:
[root@projects /]# nc -vz some.domain.com 24
Ncat: Version 7.92 ( https://nmap.org/ncat )
Ncat: Connected to 123.123.123.123:24.
Ncat: 0 bytes sent, 0 bytes received in 0.26 seconds.
[root@projects /]# nc -vz some.domain.com 1280
Ncat: Version 7.92 ( https://nmap.org/ncat )
Ncat: Connected to 123.123.123.123:1280.
Ncat: 0 bytes sent, 0 bytes received in 0.07 seconds.
[root@projects /]# nc -vz postgresql.some-project.svc.cluster.local 5432
Ncat: Version 7.92 ( https://nmap.org/ncat )
Ncat: Connected to 10.43.213.218:5432.
Ncat: 0 bytes sent, 0 bytes received in 0.03 seconds.
After a manual restart, it starts working normally for several days, then the situation repeats.
ziti-edge-tunnel version
= v1.2.5