Compare commits

...

2 Commits

Author SHA1 Message Date
Bart Geesink
3727ec5d1e MySQLbackup: Add nfs storage on nas 2023-06-05 21:59:03 +02:00
Bart Geesink
9b7d04257e add nfs storage for backup 2023-06-05 21:49:24 +02:00
4 changed files with 27 additions and 2 deletions

View File

@ -33,7 +33,7 @@ spec:
volumes: volumes:
- name: backup-volume - name: backup-volume
persistentVolumeClaim: persistentVolumeClaim:
claimName: backup-pvc claimName: nfs-mysqlbacup-claim
- name: backup-script - name: backup-script
configMap: configMap:
name: backup-script name: backup-script

View File

@ -31,7 +31,7 @@ spec:
volumes: volumes:
- name: backup-volume - name: backup-volume
persistentVolumeClaim: persistentVolumeClaim:
claimName: backup-pvc claimName: nfs-mysqlbacup-claim
- name: backup-script - name: backup-script
configMap: configMap:
name: backup-script name: backup-script

13
mysqlbackup/pv_nas.yml Normal file
View 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
View File

@ -0,0 +1,12 @@
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: nfs-mysqlbacup-claim
spec:
accessModes:
- ReadWriteMany
storageClassName: "nfs"
resources:
requests:
storage: 1Mi