Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: cluster rebuild #8364

Merged
merged 20 commits into from
Nov 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ spec:
endpointURL: https://0a10060d9ff3ad5770343527ec45f104.r2.cloudflarestorage.com
# Note: serverName version needs to be incremented
# when recovering from an existing cnpg cluster
serverName: &currentCluster postgres16-v7
serverName: &currentCluster postgres16-v8
s3Credentials:
accessKeyId:
name: cloudnative-pg-secret
Expand All @@ -49,7 +49,7 @@ spec:
# cluster when recovering from an existing cnpg cluster
bootstrap:
recovery:
source: &previousCluster postgres16-v6
source: &previousCluster postgres16-v7
# Note: externalClusters is needed when recovering from an existing cnpg cluster
externalClusters:
- name: *previousCluster
Expand Down
1 change: 1 addition & 0 deletions kubernetes/main/apps/default/qbittorrent/ks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ spec:
VOLSYNC_ACCESSMODES: ReadWriteMany
VOLSYNC_STORAGECLASS: ceph-filesystem
VOLSYNC_SNAPSHOTCLASS: csi-ceph-filesystem
VOLSYNC_SNAP_ACCESSMODES: ReadOnlyMany # CephFS shallow snapshot
---
# yaml-language-server: $schema=https://kubernetes-schemas.pages.dev/kustomize.toolkit.fluxcd.io/kustomization_v1.json
apiVersion: kustomize.toolkit.fluxcd.io/v1
Expand Down
1 change: 1 addition & 0 deletions kubernetes/main/apps/default/zigbee2mqtt/ks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,4 @@ spec:
VOLSYNC_ACCESSMODES: ReadWriteMany
VOLSYNC_STORAGECLASS: ceph-filesystem
VOLSYNC_SNAPSHOTCLASS: csi-ceph-filesystem
VOLSYNC_SNAP_ACCESSMODES: ReadOnlyMany # CephFS shallow snapshot
1 change: 1 addition & 0 deletions kubernetes/main/apps/default/zwave/ks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,4 @@ spec:
VOLSYNC_ACCESSMODES: ReadWriteMany
VOLSYNC_STORAGECLASS: ceph-filesystem
VOLSYNC_SNAPSHOTCLASS: csi-ceph-filesystem
VOLSYNC_SNAP_ACCESSMODES: ReadOnlyMany # CephFS shallow snapshot
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,6 @@ spec:
volumeBindingMode: Immediate
parameters:
imageFormat: "2"
# TODO: add 'striping' to imageFeatures on next rebuild
imageFeatures: layering,fast-diff,object-map,deep-flatten,exclusive-lock
csi.storage.k8s.io/provisioner-secret-name: rook-csi-rbd-provisioner
csi.storage.k8s.io/provisioner-secret-namespace: rook-ceph
Expand Down
4 changes: 3 additions & 1 deletion kubernetes/shared/templates/volsync/nfs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ spec:
cacheStorageClassName: "${VOLSYNC_CACHE_SNAPSHOTCLASS:-openebs-hostpath}"
cacheAccessModes: ["${VOLSYNC_CACHE_ACCESSMODES:-ReadWriteOnce}"]
storageClassName: "${VOLSYNC_STORAGECLASS:-ceph-block}"
accessModes: ["${VOLSYNC_ACCESSMODES:-ReadWriteOnce}"]
accessModes: ["${VOLSYNC_SNAP_ACCESSMODES:-ReadWriteOnce}"]
moverSecurityContext:
runAsUser: ${VOLSYNC_PUID:-568}
runAsGroup: ${VOLSYNC_PGID:-568}
Expand All @@ -51,6 +51,8 @@ apiVersion: volsync.backube/v1alpha1
kind: ReplicationDestination
metadata:
name: "${APP}-dst"
labels:
kustomize.toolkit.fluxcd.io/ssa: IfNotPresent
spec:
trigger:
manual: restore-once
Expand Down
2 changes: 1 addition & 1 deletion kubernetes/shared/templates/volsync/r2.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ spec:
cacheStorageClassName: "${VOLSYNC_CACHE_SNAPSHOTCLASS:-openebs-hostpath}"
cacheAccessModes: ["${VOLSYNC_CACHE_ACCESSMODES:-ReadWriteOnce}"]
storageClassName: "${VOLSYNC_STORAGECLASS:-ceph-block}"
accessModes: ["${VOLSYNC_ACCESSMODES:-ReadWriteOnce}"]
accessModes: ["${VOLSYNC_SNAP_ACCESSMODES:-ReadWriteOnce}"]
moverSecurityContext:
runAsUser: ${VOLSYNC_PUID:-568}
runAsGroup: ${VOLSYNC_PGID:-568}
Expand Down