This is a small setup to use openvpn server and client. I use them to connect kubernetes to kubernetes ore docker to kubernetes cluster
- Simple generat of certs
- Auto setup of helm secrets
- Simple run in docker with docker-compose
- Helm deploys of server and client
Lets build it
docker-compose build
First we need to generate certs and setup heöm secrest for the server and the client
docker-compose run openvpn-server ./setup.sh
This will generate and setup the certs neede for openvpn. Follow the screen and respond to questions
Now we should hava a working PKI and helm charts so lets run in.
docker-compose up
the docker-compose file has eboth the server and client so remove the one you dont want
helm install openvpn/helm/openvpn-server/ --name openvpn
docker-compose up
the docker-compose file has eboth the server and client so remove the one you dont want
helm install openvpn/helm/openvpn-client/ --name openvpn-client