wfg / docker-openvpn-client

OpenVPN client with killswitch and proxy servers; built on Alpine
MIT License
353 stars 107 forks source link

Added Helm chart #38

Closed DavideWalder closed 2 years ago

DavideWalder commented 2 years ago

Added a chart to deploy the client to K8s, comprised of:

The documentation for the chart is autogenerated via the pre-commit hook helm-docs.

The chart would also have to be distributed and hosted (for example through GitHub pages, as explained here), but this requires admin rights to the repo.

wfg commented 2 years ago

Thanks for putting this together. How did you test this? Are there any problems at all with the chart?

DavideWalder commented 2 years ago

Thanks for putting this together. How did you test this? Are there any problems at all with the chart?

I tested it by deploying it with different values to a private cluster. More specifically I tested that the configuration for OpenVPN and both proxies is created correctly (secrets and env vars correctly created and referenced).

In terms of behaviour of the image in the k8s environment: I tested that OpenVPN, both proxies and authentication work as intended (tested by port-forwarding the two ports to my local machine and sending requests through the pod using cURL). Also tested the KILL_SWITCH and SUBNET options by by passing the address of the DNS server in /etc/resolv.conf as subnet (without it OpenVPN can't connect and with it it can, as intended).

Things left to do:

Other than that I didn't notice any other issue with the chart (also only used it for a few days)