deployment.yaml 634 B

12345678910111213141516171819202122232425262728293031
  1. apiVersion: apps/v1
  2. kind: Deployment
  3. metadata:
  4. name: haproxy
  5. spec:
  6. strategy:
  7. type: Recreate
  8. template:
  9. spec:
  10. hostNetwork: true
  11. containers:
  12. - name: haproxy
  13. command:
  14. - /sbin/haproxy
  15. - -f
  16. - /etc/haproxy.cfg
  17. volumeMounts:
  18. - mountPath: /etc/haproxy.cfg
  19. subPath: haproxy.cfg
  20. name: haproxy-configuration
  21. - mountPath: /run
  22. subPath: run
  23. name: tmp
  24. volumes:
  25. - name: haproxy-configuration
  26. configMap:
  27. name: haproxy-configuration
  28. - name: tmp
  29. emptyDir:
  30. sizeLimit: 10M