import more pvcs from backups

This commit is contained in:
Amarpreet Minhas 2024-12-10 00:58:01 -05:00
parent e78761a63e
commit 91691795ac
6 changed files with 222 additions and 5 deletions

View file

@ -59,7 +59,7 @@ helmApps:
namespace: immich namespace: immich
repoURL: https://immich-app.github.io/immich-charts repoURL: https://immich-app.github.io/immich-charts
chart: immich chart: immich
revision: 0.8.1 revision: 0.8.4
- app: ntfy - app: ntfy
namespace: ntfy namespace: ntfy
repoURL: codeberg.org/wrenix/helm-charts repoURL: codeberg.org/wrenix/helm-charts

View file

@ -16,7 +16,7 @@ istio:
commonName: photos.minhas.io commonName: photos.minhas.io
ingressSelector: ingressgateway ingressSelector: ingressgateway
issuer: letsencrypt-prod issuer: letsencrypt-prod
port: 3001 port: 2283
backendHost: immich-server backendHost: immich-server
env: env:

View file

@ -1,3 +1,41 @@
apiVersion: v1
kind: PersistentVolume
metadata:
annotations:
longhorn.io/volume-scheduling-error: ""
pv.kubernetes.io/provisioned-by: driver.longhorn.io
volume.kubernetes.io/provisioner-deletion-secret-name: longhorn-encryption
volume.kubernetes.io/provisioner-deletion-secret-namespace: longhorn-system
name: pvc-d36605d2-3a2b-4148-b59e-73b21ae8e3e9
spec:
accessModes:
- ReadWriteOnce
capacity:
storage: 10Gi
claimRef:
apiVersion: v1
kind: PersistentVolumeClaim
name: chartmuseum
namespace: chartmuseum
csi:
driver: driver.longhorn.io
fsType: ext4
nodePublishSecretRef:
name: longhorn-encryption
namespace: longhorn-system
nodeStageSecretRef:
name: longhorn-encryption
namespace: longhorn-system
volumeAttributes:
encrypted: "true"
fromBackup: ""
fsType: ext4
numberOfReplicas: "3"
staleReplicaTimeout: "120"
volumeHandle: pvc-d36605d2-3a2b-4148-b59e-73b21ae8e3e9
persistentVolumeReclaimPolicy: Retain
storageClassName: longhorn-encrypted-retain
volumeMode: Filesystem
--- ---
apiVersion: v1 apiVersion: v1
kind: PersistentVolumeClaim kind: PersistentVolumeClaim

View file

@ -1,4 +1,43 @@
apiVersion: v1 apiVersion: v1
kind: PersistentVolume
metadata:
annotations:
longhorn.io/volume-scheduling-error: ""
pv.kubernetes.io/provisioned-by: driver.longhorn.io
volume.kubernetes.io/provisioner-deletion-secret-name: longhorn-encryption
volume.kubernetes.io/provisioner-deletion-secret-namespace: longhorn-system
name: pvc-8372cd94-b912-4a47-bc13-136843bf5a22
spec:
accessModes:
- ReadWriteOnce
capacity:
storage: 25Gi
claimRef:
apiVersion: v1
kind: PersistentVolumeClaim
name: nextcloud
namespace: nextcloud
csi:
driver: driver.longhorn.io
fsType: ext4
nodePublishSecretRef:
name: longhorn-encryption
namespace: longhorn-system
nodeStageSecretRef:
name: longhorn-encryption
namespace: longhorn-system
volumeAttributes:
encrypted: "true"
fromBackup: ""
fsType: ext4
numberOfReplicas: "3"
staleReplicaTimeout: "120"
volumeHandle: pvc-8372cd94-b912-4a47-bc13-136843bf5a22
persistentVolumeReclaimPolicy: Retain
storageClassName: longhorn-encrypted-retain
volumeMode: Filesystem
---
apiVersion: v1
kind: PersistentVolumeClaim kind: PersistentVolumeClaim
metadata: metadata:
name: nextcloud name: nextcloud

51
manifests/ntfy-pvc.yaml Normal file
View file

@ -0,0 +1,51 @@
apiVersion: v1
kind: PersistentVolume
metadata:
annotations:
longhorn.io/volume-scheduling-error: ""
pv.kubernetes.io/provisioned-by: driver.longhorn.io
volume.kubernetes.io/provisioner-deletion-secret-name: longhorn-encryption
volume.kubernetes.io/provisioner-deletion-secret-namespace: longhorn-system
name: pvc-075ec467-0dca-478d-9058-f0bf740a4963
spec:
accessModes:
- ReadWriteOnce
capacity:
storage: 1Gi
claimRef:
apiVersion: v1
kind: PersistentVolumeClaim
name: ntfy
namespace: ntfy
csi:
driver: driver.longhorn.io
fsType: ext4
nodePublishSecretRef:
name: longhorn-encryption
namespace: longhorn-system
nodeStageSecretRef:
name: longhorn-encryption
namespace: longhorn-system
volumeAttributes:
encrypted: "true"
fromBackup: ""
fsType: ext4
numberOfReplicas: "3"
staleReplicaTimeout: "120"
volumeHandle: pvc-075ec467-0dca-478d-9058-f0bf740a4963
persistentVolumeReclaimPolicy: Retain
storageClassName: longhorn-encrypted-retain
volumeMode: Filesystem
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: ntfy
namespace: ntfy
spec:
accessModes:
- ReadWriteOnce
storageClassName: longhorn-encrypted-retain
resources:
requests:
storage: 1Gi

View file

@ -4,7 +4,6 @@ kind: ServiceAccount
metadata: metadata:
namespace: immich namespace: immich
name: immich name: immich
...
--- ---
apiVersion: v1 apiVersion: v1
kind: Secret kind: Secret
@ -14,7 +13,45 @@ metadata:
namespace: immich namespace: immich
annotations: annotations:
kubernetes.io/service-account.name: "immich" kubernetes.io/service-account.name: "immich"
... ---
apiVersion: v1
kind: PersistentVolume
metadata:
annotations:
longhorn.io/volume-scheduling-error: ""
pv.kubernetes.io/provisioned-by: driver.longhorn.io
volume.kubernetes.io/provisioner-deletion-secret-name: longhorn-encryption
volume.kubernetes.io/provisioner-deletion-secret-namespace: longhorn-system
name: pvc-081a3c56-4cf6-4c96-a42d-064710b7ea63
spec:
accessModes:
- ReadWriteOnce
capacity:
storage: 50Gi
claimRef:
apiVersion: v1
kind: PersistentVolumeClaim
name: immich
namespace: immich
csi:
driver: driver.longhorn.io
fsType: ext4
nodePublishSecretRef:
name: longhorn-encryption
namespace: longhorn-system
nodeStageSecretRef:
name: longhorn-encryption
namespace: longhorn-system
volumeAttributes:
encrypted: "true"
fromBackup: ""
fsType: ext4
numberOfReplicas: "3"
staleReplicaTimeout: "120"
volumeHandle: pvc-081a3c56-4cf6-4c96-a42d-064710b7ea63
persistentVolumeReclaimPolicy: Retain
storageClassName: longhorn-encrypted-retain
volumeMode: Filesystem
--- ---
apiVersion: v1 apiVersion: v1
kind: PersistentVolumeClaim kind: PersistentVolumeClaim
@ -28,4 +65,56 @@ spec:
resources: resources:
requests: requests:
storage: 50Gi storage: 50Gi
... ---
apiVersion: v1
kind: PersistentVolume
metadata:
annotations:
longhorn.io/volume-scheduling-error: ""
pv.kubernetes.io/provisioned-by: driver.longhorn.io
volume.kubernetes.io/provisioner-deletion-secret-name: longhorn-encryption
volume.kubernetes.io/provisioner-deletion-secret-namespace: longhorn-system
name: pvc-adf503ec-33cf-4d98-a640-4618817affca
spec:
accessModes:
- ReadWriteOnce
capacity:
storage: 8Gi
claimRef:
apiVersion: v1
kind: PersistentVolumeClaim
name: redis-data-immich-redis-master-0
namespace: immich
csi:
driver: driver.longhorn.io
fsType: ext4
nodePublishSecretRef:
name: longhorn-encryption
namespace: longhorn-system
nodeStageSecretRef:
name: longhorn-encryption
namespace: longhorn-system
volumeAttributes:
encrypted: "true"
fromBackup: ""
fsType: ext4
numberOfReplicas: "3"
staleReplicaTimeout: "120"
volumeHandle: pvc-adf503ec-33cf-4d98-a640-4618817affca
persistentVolumeReclaimPolicy: Retain
storageClassName: longhorn-encrypted-retain
volumeMode: Filesystem
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: redis-data-immich-redis-master-0
namespace: immich
spec:
accessModes:
- ReadWriteOnce
storageClassName: longhorn-encrypted-retain
resources:
requests:
storage: 8Gi
---