registry-deployment.yaml 899 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. apiVersion: apps/v1
  2. kind: Deployment
  3. metadata:
  4. labels:
  5. app.kubernetes.io/name: registry
  6. app.kubernetes.io/part-of: registry
  7. name: registry
  8. spec:
  9. selector:
  10. matchLabels:
  11. app.kubernetes.io/name: registry
  12. app.kubernetes.io/part-of: registry
  13. strategy:
  14. type: Recreate
  15. template:
  16. metadata:
  17. labels:
  18. app.kubernetes.io/name: registry
  19. app.kubernetes.io/part-of: registry
  20. spec:
  21. hostNetwork: true
  22. containers:
  23. - image: registry:2
  24. name: registry
  25. resources:
  26. limits:
  27. cpu: 100m
  28. memory: 300Mi
  29. requests:
  30. cpu: 10m
  31. memory: 100Mi
  32. volumeMounts:
  33. - mountPath: /var/lib/registry
  34. name: registry-claim0
  35. volumes:
  36. - name: registry-claim0
  37. hostPath:
  38. path: /srv/lib/docker/registry
  39. type: Directory