apiVersion: apps/v1
kind: Deployment
metadata:
  name: openvpn
spec:
  template:
    metadata:
      labels:
        app.kubernetes.io/name: openvpn
        app.kubernetes.io/part-of: openvpn
    spec:
      containers:
      - name: openvpn
        command:
        - /gnu/store/bjpmnbx40ldw1bqw51c3g0y9xawg891g-openvpn-2.6.7/sbin/openvpn
        args:
        - --config
        - /openvpn.conf
        volumeMounts:
        - mountPath: /openvpn.conf
          subPath: openvpn.conf
          readOnly: true
          name: config
      volumes:
      - name: config
        configMap:
          name: openvpn-configuration
