deployment.yaml 627 B

12345678910111213141516171819202122232425262728
  1. apiVersion: apps/v1
  2. kind: Deployment
  3. metadata:
  4. name: openvpn
  5. spec:
  6. template:
  7. metadata:
  8. labels:
  9. app.kubernetes.io/name: openvpn
  10. app.kubernetes.io/part-of: openvpn
  11. spec:
  12. containers:
  13. - name: openvpn
  14. command:
  15. - /gnu/store/bjpmnbx40ldw1bqw51c3g0y9xawg891g-openvpn-2.6.7/sbin/openvpn
  16. args:
  17. - --config
  18. - /openvpn.conf
  19. volumeMounts:
  20. - mountPath: /openvpn.conf
  21. subPath: openvpn.conf
  22. readOnly: true
  23. name: config
  24. volumes:
  25. - name: config
  26. configMap:
  27. name: openvpn-configuration