Track PVC copy yaml.
This commit is contained in:
parent
9455a4b2b1
commit
40750e12eb
|
|
@ -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
|
||||
Loading…
Reference in New Issue