Compare commits
2 Commits
257c00fe0c
...
3727ec5d1e
Author | SHA1 | Date | |
---|---|---|---|
|
3727ec5d1e | ||
|
9b7d04257e |
@ -33,7 +33,7 @@ spec:
|
||||
volumes:
|
||||
- name: backup-volume
|
||||
persistentVolumeClaim:
|
||||
claimName: backup-pvc
|
||||
claimName: nfs-mysqlbacup-claim
|
||||
- name: backup-script
|
||||
configMap:
|
||||
name: backup-script
|
||||
|
@ -31,7 +31,7 @@ spec:
|
||||
volumes:
|
||||
- name: backup-volume
|
||||
persistentVolumeClaim:
|
||||
claimName: backup-pvc
|
||||
claimName: nfs-mysqlbacup-claim
|
||||
- name: backup-script
|
||||
configMap:
|
||||
name: backup-script
|
||||
|
13
mysqlbackup/pv_nas.yml
Normal file
13
mysqlbackup/pv_nas.yml
Normal file
@ -0,0 +1,13 @@
|
||||
apiVersion: v1
|
||||
kind: PersistentVolume
|
||||
metadata:
|
||||
name: nfs-backup-mysql
|
||||
spec:
|
||||
capacity:
|
||||
storage: 1Mi
|
||||
accessModes:
|
||||
- ReadWriteMany
|
||||
nfs:
|
||||
server: 192.168.86.86
|
||||
path: "/volume1/backupk8s/mysql/"
|
||||
storageClassName: nfs
|
12
mysqlbackup/pvc_nas.yml
Normal file
12
mysqlbackup/pvc_nas.yml
Normal file
@ -0,0 +1,12 @@
|
||||
apiVersion: v1
|
||||
kind: PersistentVolumeClaim
|
||||
metadata:
|
||||
name: nfs-mysqlbacup-claim
|
||||
spec:
|
||||
accessModes:
|
||||
- ReadWriteMany
|
||||
storageClassName: "nfs"
|
||||
resources:
|
||||
requests:
|
||||
storage: 1Mi
|
||||
|
Loading…
Reference in New Issue
Block a user