Join 1M+ other developers and:
- Get help and share knowledge in Q&A
- Subscribe to topics of interest
- Get courses & tools that help you grow as a developer or small business owner
UDP routing or fixed ip in manadged k8s
I want to run OpenVPN on my managed cluster. OpenVPN uses UDP, and this generates some problems. First of all, I can’t use the DO load balancer (it only relays TCP/HTTP). Secondly for some reason DO floating IP seems to not work with UDP either.
My first idea was simply to get a floating IP, point it to one of the nodes, and everything will be ok (maybe I could write up a small automation script to auto reassign that IP on the node-pool). I could connect to the droplet IP, but can not connect to the floating IP. But I could ssh to both.
Right now, I simply pointed my domain to one of the worker’s IP, and started a VPN server on all of the nodes, with binding the node’s port. It “works” now, but if the droplets are added/removed to the cluster and I get unlucky I need to reassign the domain to one of the new IPs. Also somehow my home router needs a manual reconnect after an IP change which is really unfortunate.
I’m open to any elegant solution :)
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.×