From 40750e12eb07f377b12fc4f57da13ec3ccb7b8dd Mon Sep 17 00:00:00 2001 From: James Pace Date: Sun, 19 Feb 2023 09:18:19 -0500 Subject: [PATCH] Track PVC copy yaml. --- deployments/pvc-copy.yaml | 44 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 deployments/pvc-copy.yaml diff --git a/deployments/pvc-copy.yaml b/deployments/pvc-copy.yaml new file mode 100644 index 0000000..d0b01f8 --- /dev/null +++ b/deployments/pvc-copy.yaml @@ -0,0 +1,44 @@ +--- +apiVersion: apps/v1 +kind: Deployment +metadata: + name: pvc-copy-deployment + labels: + app: pvc-copy +spec: + replicas: 1 + selector: + matchLabels: + app: pvc-copy + template: + metadata: + labels: + app: pvc-copy + spec: + containers: + - name: pvc-copy + image: 192.168.1.149:8443/jwp-build:latest + volumeMounts: + - mountPath: /var/original-pvc + name: original-pvc + - mountPath: /var/new-pvc + name: new-pvc + volumes: + - name: original-pvc + persistentVolumeClaim: + claimName: kanboard-pvc + - name: new-pvc + persistentVolumeClaim: + claimName: kanboard-pvc-nfs +--- +apiVersion: v1 +kind: PersistentVolumeClaim +metadata: + name: kanboard-pvc-nfs +spec: + accessModes: + - ReadWriteOnce + storageClassName: nfs-client + resources: + requests: + storage: 2Gi \ No newline at end of file