registry-deployment.yaml 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. apiVersion: apps/v1
  2. kind: Deployment
  3. metadata:
  4. annotations:
  5. kompose.cmd: kompose convert
  6. kompose.version: 1.26.0 (40646f47)
  7. creationTimestamp: null
  8. labels:
  9. io.kompose.service: registry
  10. name: registry
  11. spec:
  12. replicas: 1
  13. selector:
  14. matchLabels:
  15. io.kompose.service: registry
  16. strategy:
  17. type: Recreate
  18. template:
  19. metadata:
  20. annotations:
  21. kompose.cmd: kompose convert
  22. kompose.version: 1.26.0 (40646f47)
  23. creationTimestamp: null
  24. labels:
  25. io.kompose.service: registry
  26. spec:
  27. containers:
  28. - env:
  29. - name: REGISTRY_AUTH
  30. value: htpasswd
  31. - name: REGISTRY_AUTH_HTPASSWD_PATH
  32. value: /a2auth/registry.password
  33. - name: REGISTRY_AUTH_HTPASSWD_REALM
  34. value: Registry
  35. - name: REGISTRY_HTTP_SECRET
  36. value: SomeRandomStringToUse
  37. - name: REGISTRY_STORAGE_DELETE_ENABLED
  38. value: "true"
  39. - name: REGISTRY_STORAGE_FILESYSTEM_ROOTDIRECTORY
  40. value: /main
  41. image: registry:2
  42. name: registry
  43. ports:
  44. - containerPort: 5000
  45. resources: {}
  46. volumeMounts:
  47. - mountPath: /main
  48. name: registry-claim0
  49. - mountPath: /a2auth
  50. name: registry-claim1
  51. restartPolicy: Always
  52. volumes:
  53. - name: registry-claim0
  54. persistentVolumeClaim:
  55. claimName: registry-claim0
  56. - name: registry-claim1
  57. persistentVolumeClaim:
  58. claimName: registry-claim1
  59. status: {}