Track PVC copy yaml.

This commit is contained in:
James Pace 2023-02-19 09:18:19 -05:00
parent 9455a4b2b1
commit 40750e12eb
1 changed files with 44 additions and 0 deletions

44
deployments/pvc-copy.yaml Normal file
View File

@ -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