diff --git a/bootstrap/registry/registry.yaml b/bootstrap/registry/registry.yaml index 905e66a..225857b 100644 --- a/bootstrap/registry/registry.yaml +++ b/bootstrap/registry/registry.yaml @@ -1,3 +1,19 @@ +apiVersion: v1 +kind: PersistentVolumeClaim +metadata: + name: registry-pvc + namespace: crossplane-system +spec: + accessModes: + - ReadWriteOnce + resources: + requests: + storage: 20Gi + # Uses the default StorageClass (local-path in colima/k3s). + # Data lives on the colima VM disk, which persists across computer restarts + # (as long as the colima instance/VM itself is not deleted). + +--- apiVersion: apps/v1 kind: Deployment metadata: @@ -18,6 +34,13 @@ spec: image: registry:2 ports: - containerPort: 5000 + volumeMounts: + - name: registry-data + mountPath: /var/lib/registry + volumes: + - name: registry-data + persistentVolumeClaim: + claimName: registry-pvc --- apiVersion: v1 kind: Service