diff --git a/docker-registry.pod.yaml b/docker-registry.pod.yaml index 6070e30..a900a77 100644 --- a/docker-registry.pod.yaml +++ b/docker-registry.pod.yaml @@ -11,7 +11,7 @@ spec: hostPort: 5000 volumeMounts: - mountPath: /var/lib/registry - name: registry-data + name: registry-data-pvc securityContext: privileged: true - name: registry-ui @@ -37,7 +37,7 @@ spec: - name: REGISTRY_SECURED value: "false" volumes: - - name: registry-data - hostPath: - path: /var/lib/registry + - name: registry-data-pvc + persistentVolumeClaim: + claimName: registry-data restartPolicy: Always