Skip to content

Latest commit

 

History

History
37 lines (23 loc) · 891 Bytes

README.md

File metadata and controls

37 lines (23 loc) · 891 Bytes

GET STARTED

The helm charts using deploy openvpn server on k8s cluster. The helm chart supports ldap authentication.

In the lab, I use glauth is ldap lightweight servers.

Using

git clone https://github.com/helm-openvpn-docker-ldap.git

cd helm-openvpn-docker-ldap
# Create new namepsace
kubectl create ns openvpn
helm -n openvpn install . openvpn

Configuration

Edit file values.yaml to customize openvpn server.

Generate new config for openvpn

KEY_NAME="trungn"
SERVICE_IP="10.10.10.10"

kubectl --namespace openvpn exec -it "$POD_NAME" /etc/openvpn/setup/newClientCert.sh "$KEY_NAME" "$SERVICE_IP"
kubectl --namespace openvpn exec -it "$POD_NAME" cat "/etc/openvpn/certs/pki/$KEY_NAME.ovpn" > "$KEY_NAME.ovpn"

Reference