feat: mount both /backup and /archives for now

This commit is contained in:
2024-07-05 15:56:18 +02:00
parent daefa1130d
commit 09f6bd9e11
10 changed files with 113 additions and 20 deletions
@@ -0,0 +1,35 @@
apiVersion: v1
kind: PersistentVolume
metadata:
name: pv-prod-backup-archives
spec:
accessModes:
- ReadWriteMany
capacity:
storage: 400T
local:
path: /backup/archives
persistentVolumeReclaimPolicy: Retain
volumeMode: Filesystem
nodeAffinity:
required:
nodeSelectorTerms:
- matchExpressions:
- key: kubernetes.io/hostname
operator: In
values:
- ekman
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: prod-oceanbox-backup-archives
spec:
accessModes:
- ReadWriteMany
resources:
requests:
storage: 400T
storageClassName: ""
volumeMode: Filesystem
volumeName: pv-prod-backup-archives
@@ -16,7 +16,7 @@ spec:
fsName: data
clusterID: rook-ceph
staticVolume: "true"
rootPath: /archives
rootPath: /
volumeHandle: pv-prod-ceph-archives
persistentVolumeReclaimPolicy: Retain
volumeMode: Filesystem
@@ -1,6 +1,17 @@
- op: replace
path: /spec/template/spec/containers/0/volumeMounts/0/mountPath
value: /data/archives
value: /data
- op: add
path: /spec/template/spec/containers/0/volumeMounts/-
value:
mountPath: /backup/archives
name: backup
- op: add
path: /spec/template/spec/volumes/-
value:
name: backup
persistentVolumeClaim:
claimName: prod-oceanbox-backup-archives
- op: replace
path: /spec/template/spec/containers/0/env/0
value:
@@ -15,7 +15,6 @@ patches:
kind: Deployment
path: deployment_patch.yaml
resources:
# - pv.yaml
# - pvc.yaml
- archives-ceph-volume.yaml
- archives-backup-volume.yaml
- ../base
@@ -0,0 +1,35 @@
apiVersion: v1
kind: PersistentVolume
metadata:
name: pv-staging-backup-archives
spec:
accessModes:
- ReadWriteMany
capacity:
storage: 400T
local:
path: /backup/archives
persistentVolumeReclaimPolicy: Retain
volumeMode: Filesystem
nodeAffinity:
required:
nodeSelectorTerms:
- matchExpressions:
- key: kubernetes.io/hostname
operator: In
values:
- ekman
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: staging-oceanbox-backup-archives
spec:
accessModes:
- ReadWriteMany
resources:
requests:
storage: 400T
storageClassName: ""
volumeMode: Filesystem
volumeName: pv-staging-backup-archives
@@ -16,7 +16,7 @@ spec:
fsName: data
clusterID: rook-ceph
staticVolume: "true"
rootPath: /archives
rootPath: /
volumeHandle: pv-staging-ceph-archives
persistentVolumeReclaimPolicy: Retain
volumeMode: Filesystem
@@ -1,6 +1,17 @@
- op: replace
path: /spec/template/spec/containers/0/volumeMounts/0/mountPath
value: /data/archives
value: /data
- op: add
path: /spec/template/spec/containers/0/volumeMounts/-
value:
mountPath: /backup/archives
name: backup
- op: add
path: /spec/template/spec/volumes/-
value:
name: backup
persistentVolumeClaim:
claimName: staging-oceanbox-backup-archives
- op: replace
path: /spec/template/spec/containers/0/env/0
value:
@@ -15,7 +15,6 @@ patches:
kind: Deployment
path: deployment_patch.yaml
resources:
# - pv.yaml
# - pvc.yaml
- archives-ceph-volume.yaml
- archives-backup-volume.yaml
- ../base
+4 -5
View File
@@ -13,12 +13,12 @@ ingress:
persistence:
enabled: true
# existingClaim: prod-ceph-archives
existingClaim: prod-oceanbox-backup-archives
existingClaim: prod-ceph-archives
# existingClaim: prod-oceanbox-backup-archives
nodeSelector:
# topology.kubernetes.io/group: srv
kubernetes.io/hostname: fs-backup
topology.kubernetes.io/group: login
# kubernetes.io/hostname: fs-backup
# node-role.kubernetes.io/worker: c1-1
# tolerations:
@@ -26,4 +26,3 @@ nodeSelector:
# operator: Equal
# value: compute
# effect: NoSchedule
+11 -7
View File
@@ -13,15 +13,19 @@ ingress:
- hosts:
- sorcerer.ekman.oceanbox.io
secretName: staging-sorcerer-tls
persistence:
enabled: true
existingClaim: staging-ceph-archives
# existingClaim: staging-oceanbox-backup-archives
nodeSelector:
topology.kubernetes.io/group: srv
# kubernetes.io/hostname: fs2
topology.kubernetes.io/group: login
# kubernetes.io/hostname: fs-backup
# node-role.kubernetes.io/worker: c1-1
tolerations:
- key: workload
operator: Equal
value: compute
effect: NoSchedule
# tolerations:
# - key: workload
# operator: Equal
# value: compute
# effect: NoSchedule