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