deployment.yaml 696 B

123456789101112131415161718192021222324252627282930313233
  1. apiVersion: apps/v1
  2. kind: Deployment
  3. metadata:
  4. name: $1
  5. spec:
  6. selector:
  7. matchLabels:
  8. app.kubernetes.io/name: $1
  9. app.kubernetes.io/part-of: $2
  10. template:
  11. metadata:
  12. labels:
  13. app.kubernetes.io/name: $1
  14. app.kubernetes.io/part-of: $2
  15. spec:
  16. containers:
  17. - image: docker-registry.intr/${3:group}/$1:master
  18. name: $1
  19. # ports:
  20. # - containerPort: 6080
  21. # name: http
  22. # protocol: TCP
  23. # env:
  24. # - name: $1
  25. # value: "$2:5900"
  26. resources:
  27. limits:
  28. cpu: 2000m
  29. memory: 1024Mi
  30. requests:
  31. cpu: 1000m
  32. memory: 512Mi