deployment.yaml 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. apiVersion: apps/v1
  2. kind: Deployment
  3. metadata:
  4. name: dante
  5. spec:
  6. selector:
  7. matchLabels:
  8. app.kubernetes.io/name: dante
  9. app.kubernetes.io/part-of: dante
  10. template:
  11. metadata:
  12. labels:
  13. app.kubernetes.io/name: dante
  14. app.kubernetes.io/part-of: dante
  15. spec:
  16. containers:
  17. - image: docker-registry.wugi.info/net/dante
  18. name: dante
  19. command:
  20. - /usr/sbin/danted
  21. ports:
  22. - containerPort: 1080
  23. name: http
  24. protocol: TCP
  25. resources:
  26. limits:
  27. cpu: 8000m
  28. memory: 2048Mi
  29. requests:
  30. cpu: 1000m
  31. memory: 512Mi
  32. volumeMounts:
  33. - mountPath: /etc/danted.conf
  34. name: configuration
  35. subPath: danted.conf
  36. - mountPath: /etc/danted.passwd
  37. name: configuration
  38. subPath: danted.passwd
  39. - mountPath: /etc/pam.d/sockd
  40. name: configuration
  41. subPath: sockd
  42. volumes:
  43. - name: configuration
  44. secret:
  45. secretName: dante-configuration