mirror of
https://github.com/wahyd4/home-docker.git
synced 2026-08-09 04:15:52 +10:00
Switch to use feiniu fns
This commit is contained in:
+31
-2
@@ -1,3 +1,33 @@
|
||||
apiVersion: v1
|
||||
kind: PersistentVolume
|
||||
metadata:
|
||||
name: feiniu-data-nfs
|
||||
spec:
|
||||
capacity:
|
||||
storage: 300Gi
|
||||
accessModes:
|
||||
- ReadWriteMany
|
||||
nfs:
|
||||
server: 192.168.1.5
|
||||
path: "/fs/1000/nfs/data"
|
||||
|
||||
---
|
||||
|
||||
apiVersion: v1
|
||||
kind: PersistentVolumeClaim
|
||||
metadata:
|
||||
name: "feiniu-data-nfs"
|
||||
namespace: media
|
||||
spec:
|
||||
storageClassName: ""
|
||||
volumeName: feiniu-data-nfs
|
||||
accessModes:
|
||||
- ReadWriteMany
|
||||
resources:
|
||||
requests:
|
||||
storage: 300Gi
|
||||
|
||||
---
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
@@ -18,7 +48,7 @@ spec:
|
||||
volumes:
|
||||
- name: downloads
|
||||
persistentVolumeClaim:
|
||||
claimName: downloads-nfs
|
||||
claimName: feiniu-data-nfs
|
||||
containers:
|
||||
- name: static-file-server
|
||||
image: mirror.gcr.io/caddy:2
|
||||
@@ -35,7 +65,6 @@ spec:
|
||||
value: Australia/Melbourne
|
||||
volumeMounts:
|
||||
- name: downloads
|
||||
subPath: ftp
|
||||
mountPath: /www
|
||||
resources:
|
||||
requests:
|
||||
|
||||
+2
-2
@@ -218,9 +218,9 @@ sudo apt install kubeadm=1.27.6-00
|
||||
# Datadog crash probably related to redis, please make sure redis is healthy
|
||||
|
||||
|
||||
### Restore files from nas
|
||||
### Restore files from nas, with progress
|
||||
|
||||
rsync -chavzP --stats rsync://junv@192.168.1.4/backups/192.168.1.2/redis /mnt/k8s
|
||||
rsync -havzP --stats rsync://junv@192.168.1.4/backups/192.168.1.2/redis /mnt/k8s
|
||||
|
||||
|
||||
# Disk full
|
||||
|
||||
Reference in New Issue
Block a user