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/38agwkxz139fh9z0y7g3vqwyli1ldrl7-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