cephrgw: remove cnpg backup buckets (ec migration step 2) (#315)
Step 2 of the ec placement migration: with purge-on-delete now allowed (#313), removing the Bucket CRs makes the operator delete the underlying RGW buckets and their objects, freeing the names to be recreated on ec in step 3. - remove the nine cnpg backup Bucket resources - keep ObjectStoreUser and ScheduledBackup so the backup-s3 secrets and schedules survive Reviewed-on: #315 Co-authored-by: Ben Vincent <ben@unkin.net> Co-committed-by: Ben Vincent <ben@unkin.net>
This commit was merged in pull request #315.
This commit is contained in:
@@ -20,25 +20,6 @@ spec:
|
|||||||
# in-flight restore can still reach the archive.
|
# in-flight restore can still reach the archive.
|
||||||
retainOnDelete: true
|
retainOnDelete: true
|
||||||
---
|
---
|
||||||
apiVersion: ceph.unkin.net/v1alpha1
|
|
||||||
kind: Bucket
|
|
||||||
metadata:
|
|
||||||
name: cnpg-artifactapi
|
|
||||||
namespace: artifactapi
|
|
||||||
spec:
|
|
||||||
placementTarget: ec
|
|
||||||
bucketName: cnpg-artifactapi
|
|
||||||
# The owner user has full control of its own bucket (read + write), which is
|
|
||||||
# all the backup/restore identity needs — no extra BucketAccess grant.
|
|
||||||
ownerRef: cnpg-artifactapi-backup
|
|
||||||
versioning: false
|
|
||||||
tags:
|
|
||||||
app: artifactapi
|
|
||||||
purpose: cnpg-backup
|
|
||||||
# Never drop the backups if the CR is removed; retire buckets by hand.
|
|
||||||
retainOnDelete: false
|
|
||||||
purgeOnDelete: true
|
|
||||||
---
|
|
||||||
# Nightly base backup. Continuous WAL archiving is always-on via the Cluster's
|
# Nightly base backup. Continuous WAL archiving is always-on via the Cluster's
|
||||||
# spec.backup.barmanObjectStore; this schedules the periodic full backup that
|
# spec.backup.barmanObjectStore; this schedules the periodic full backup that
|
||||||
# WAL is layered on top of. Schedules are staggered across clusters so the 8
|
# WAL is layered on top of. Schedules are staggered across clusters so the 8
|
||||||
|
|||||||
@@ -20,25 +20,6 @@ spec:
|
|||||||
# in-flight restore can still reach the archive.
|
# in-flight restore can still reach the archive.
|
||||||
retainOnDelete: true
|
retainOnDelete: true
|
||||||
---
|
---
|
||||||
apiVersion: ceph.unkin.net/v1alpha1
|
|
||||||
kind: Bucket
|
|
||||||
metadata:
|
|
||||||
name: cnpg-authentik
|
|
||||||
namespace: authentik
|
|
||||||
spec:
|
|
||||||
placementTarget: ec
|
|
||||||
bucketName: cnpg-authentik
|
|
||||||
# The owner user has full control of its own bucket (read + write), which is
|
|
||||||
# all the backup/restore identity needs — no extra BucketAccess grant.
|
|
||||||
ownerRef: cnpg-authentik-backup
|
|
||||||
versioning: false
|
|
||||||
tags:
|
|
||||||
app: authentik
|
|
||||||
purpose: cnpg-backup
|
|
||||||
# Never drop the backups if the CR is removed; retire buckets by hand.
|
|
||||||
retainOnDelete: false
|
|
||||||
purgeOnDelete: true
|
|
||||||
---
|
|
||||||
# Nightly base backup. Continuous WAL archiving is always-on via the Cluster's
|
# Nightly base backup. Continuous WAL archiving is always-on via the Cluster's
|
||||||
# spec.backup.barmanObjectStore; this schedules the periodic full backup that
|
# spec.backup.barmanObjectStore; this schedules the periodic full backup that
|
||||||
# WAL is layered on top of. Schedules are staggered across clusters so the 8
|
# WAL is layered on top of. Schedules are staggered across clusters so the 8
|
||||||
|
|||||||
@@ -20,25 +20,6 @@ spec:
|
|||||||
# in-flight restore can still reach the archive.
|
# in-flight restore can still reach the archive.
|
||||||
retainOnDelete: true
|
retainOnDelete: true
|
||||||
---
|
---
|
||||||
apiVersion: ceph.unkin.net/v1alpha1
|
|
||||||
kind: Bucket
|
|
||||||
metadata:
|
|
||||||
name: cnpg-encapi
|
|
||||||
namespace: encapi
|
|
||||||
spec:
|
|
||||||
placementTarget: ec
|
|
||||||
bucketName: cnpg-encapi
|
|
||||||
# The owner user has full control of its own bucket (read + write), which is
|
|
||||||
# all the backup/restore identity needs — no extra BucketAccess grant.
|
|
||||||
ownerRef: cnpg-encapi-backup
|
|
||||||
versioning: false
|
|
||||||
tags:
|
|
||||||
app: encapi
|
|
||||||
purpose: cnpg-backup
|
|
||||||
# Never drop the backups if the CR is removed; retire buckets by hand.
|
|
||||||
retainOnDelete: false
|
|
||||||
purgeOnDelete: true
|
|
||||||
---
|
|
||||||
# Nightly base backup. Continuous WAL archiving is always-on via the Cluster's
|
# Nightly base backup. Continuous WAL archiving is always-on via the Cluster's
|
||||||
# spec.backup.barmanObjectStore; this schedules the periodic full backup that
|
# spec.backup.barmanObjectStore; this schedules the periodic full backup that
|
||||||
# WAL is layered on top of. Schedules are staggered across clusters so the 8
|
# WAL is layered on top of. Schedules are staggered across clusters so the 8
|
||||||
|
|||||||
@@ -20,25 +20,6 @@ spec:
|
|||||||
# in-flight restore can still reach the archive.
|
# in-flight restore can still reach the archive.
|
||||||
retainOnDelete: true
|
retainOnDelete: true
|
||||||
---
|
---
|
||||||
apiVersion: ceph.unkin.net/v1alpha1
|
|
||||||
kind: Bucket
|
|
||||||
metadata:
|
|
||||||
name: cnpg-grafana
|
|
||||||
namespace: grafana
|
|
||||||
spec:
|
|
||||||
placementTarget: ec
|
|
||||||
bucketName: cnpg-grafana
|
|
||||||
# The owner user has full control of its own bucket (read + write), which is
|
|
||||||
# all the backup/restore identity needs — no extra BucketAccess grant.
|
|
||||||
ownerRef: cnpg-grafana-backup
|
|
||||||
versioning: false
|
|
||||||
tags:
|
|
||||||
app: grafana
|
|
||||||
purpose: cnpg-backup
|
|
||||||
# Never drop the backups if the CR is removed; retire buckets by hand.
|
|
||||||
retainOnDelete: false
|
|
||||||
purgeOnDelete: true
|
|
||||||
---
|
|
||||||
# Nightly base backup. Continuous WAL archiving is always-on via the Cluster's
|
# Nightly base backup. Continuous WAL archiving is always-on via the Cluster's
|
||||||
# spec.backup.barmanObjectStore; this schedules the periodic full backup that
|
# spec.backup.barmanObjectStore; this schedules the periodic full backup that
|
||||||
# WAL is layered on top of. Schedules are staggered across clusters so the 8
|
# WAL is layered on top of. Schedules are staggered across clusters so the 8
|
||||||
|
|||||||
@@ -20,25 +20,6 @@ spec:
|
|||||||
# in-flight restore can still reach the archive.
|
# in-flight restore can still reach the archive.
|
||||||
retainOnDelete: true
|
retainOnDelete: true
|
||||||
---
|
---
|
||||||
apiVersion: ceph.unkin.net/v1alpha1
|
|
||||||
kind: Bucket
|
|
||||||
metadata:
|
|
||||||
name: cnpg-litellm
|
|
||||||
namespace: litellm
|
|
||||||
spec:
|
|
||||||
placementTarget: ec
|
|
||||||
bucketName: cnpg-litellm
|
|
||||||
# The owner user has full control of its own bucket (read + write), which is
|
|
||||||
# all the backup/restore identity needs — no extra BucketAccess grant.
|
|
||||||
ownerRef: cnpg-litellm-backup
|
|
||||||
versioning: false
|
|
||||||
tags:
|
|
||||||
app: litellm
|
|
||||||
purpose: cnpg-backup
|
|
||||||
# Never drop the backups if the CR is removed; retire buckets by hand.
|
|
||||||
retainOnDelete: false
|
|
||||||
purgeOnDelete: true
|
|
||||||
---
|
|
||||||
# Nightly base backup. Continuous WAL archiving is always-on via the Cluster's
|
# Nightly base backup. Continuous WAL archiving is always-on via the Cluster's
|
||||||
# spec.backup.barmanObjectStore; this schedules the periodic full backup that
|
# spec.backup.barmanObjectStore; this schedules the periodic full backup that
|
||||||
# WAL is layered on top of. Schedules are staggered across clusters so the 8
|
# WAL is layered on top of. Schedules are staggered across clusters so the 8
|
||||||
|
|||||||
@@ -19,22 +19,6 @@ spec:
|
|||||||
# Keep the RGW user (and thus the keys) if this CR is ever deleted.
|
# Keep the RGW user (and thus the keys) if this CR is ever deleted.
|
||||||
retainOnDelete: true
|
retainOnDelete: true
|
||||||
---
|
---
|
||||||
apiVersion: ceph.unkin.net/v1alpha1
|
|
||||||
kind: Bucket
|
|
||||||
metadata:
|
|
||||||
name: cnpg-netbox
|
|
||||||
namespace: netbox
|
|
||||||
spec:
|
|
||||||
placementTarget: ec
|
|
||||||
bucketName: cnpg-netbox
|
|
||||||
ownerRef: cnpg-netbox-backup
|
|
||||||
versioning: false
|
|
||||||
tags:
|
|
||||||
app: netbox
|
|
||||||
purpose: cnpg-backup
|
|
||||||
retainOnDelete: false
|
|
||||||
purgeOnDelete: true
|
|
||||||
---
|
|
||||||
apiVersion: postgresql.cnpg.io/v1
|
apiVersion: postgresql.cnpg.io/v1
|
||||||
kind: ScheduledBackup
|
kind: ScheduledBackup
|
||||||
metadata:
|
metadata:
|
||||||
|
|||||||
@@ -20,25 +20,6 @@ spec:
|
|||||||
# in-flight restore can still reach the archive.
|
# in-flight restore can still reach the archive.
|
||||||
retainOnDelete: true
|
retainOnDelete: true
|
||||||
---
|
---
|
||||||
apiVersion: ceph.unkin.net/v1alpha1
|
|
||||||
kind: Bucket
|
|
||||||
metadata:
|
|
||||||
name: cnpg-paperclip
|
|
||||||
namespace: paperclip
|
|
||||||
spec:
|
|
||||||
placementTarget: ec
|
|
||||||
bucketName: cnpg-paperclip
|
|
||||||
# The owner user has full control of its own bucket (read + write), which is
|
|
||||||
# all the backup/restore identity needs — no extra BucketAccess grant.
|
|
||||||
ownerRef: cnpg-paperclip-backup
|
|
||||||
versioning: false
|
|
||||||
tags:
|
|
||||||
app: paperclip
|
|
||||||
purpose: cnpg-backup
|
|
||||||
# Never drop the backups if the CR is removed; retire buckets by hand.
|
|
||||||
retainOnDelete: false
|
|
||||||
purgeOnDelete: true
|
|
||||||
---
|
|
||||||
# Nightly base backup. Continuous WAL archiving is always-on via the Cluster's
|
# Nightly base backup. Continuous WAL archiving is always-on via the Cluster's
|
||||||
# spec.backup.barmanObjectStore; this schedules the periodic full backup that
|
# spec.backup.barmanObjectStore; this schedules the periodic full backup that
|
||||||
# WAL is layered on top of. Schedules are staggered across clusters so the 8
|
# WAL is layered on top of. Schedules are staggered across clusters so the 8
|
||||||
|
|||||||
@@ -20,25 +20,6 @@ spec:
|
|||||||
# in-flight restore can still reach the archive.
|
# in-flight restore can still reach the archive.
|
||||||
retainOnDelete: true
|
retainOnDelete: true
|
||||||
---
|
---
|
||||||
apiVersion: ceph.unkin.net/v1alpha1
|
|
||||||
kind: Bucket
|
|
||||||
metadata:
|
|
||||||
name: cnpg-puppet
|
|
||||||
namespace: puppet
|
|
||||||
spec:
|
|
||||||
placementTarget: ec
|
|
||||||
bucketName: cnpg-puppet
|
|
||||||
# The owner user has full control of its own bucket (read + write), which is
|
|
||||||
# all the backup/restore identity needs — no extra BucketAccess grant.
|
|
||||||
ownerRef: cnpg-puppet-backup
|
|
||||||
versioning: false
|
|
||||||
tags:
|
|
||||||
app: puppet
|
|
||||||
purpose: cnpg-backup
|
|
||||||
# Never drop the backups if the CR is removed; retire buckets by hand.
|
|
||||||
retainOnDelete: false
|
|
||||||
purgeOnDelete: true
|
|
||||||
---
|
|
||||||
# Nightly base backup. Continuous WAL archiving is always-on via the Cluster's
|
# Nightly base backup. Continuous WAL archiving is always-on via the Cluster's
|
||||||
# spec.backup.barmanObjectStore; this schedules the periodic full backup that
|
# spec.backup.barmanObjectStore; this schedules the periodic full backup that
|
||||||
# WAL is layered on top of. Schedules are staggered across clusters so the 8
|
# WAL is layered on top of. Schedules are staggered across clusters so the 8
|
||||||
|
|||||||
@@ -20,25 +20,6 @@ spec:
|
|||||||
# in-flight restore can still reach the archive.
|
# in-flight restore can still reach the archive.
|
||||||
retainOnDelete: true
|
retainOnDelete: true
|
||||||
---
|
---
|
||||||
apiVersion: ceph.unkin.net/v1alpha1
|
|
||||||
kind: Bucket
|
|
||||||
metadata:
|
|
||||||
name: cnpg-woodpecker
|
|
||||||
namespace: woodpecker
|
|
||||||
spec:
|
|
||||||
placementTarget: ec
|
|
||||||
bucketName: cnpg-woodpecker
|
|
||||||
# The owner user has full control of its own bucket (read + write), which is
|
|
||||||
# all the backup/restore identity needs — no extra BucketAccess grant.
|
|
||||||
ownerRef: cnpg-woodpecker-backup
|
|
||||||
versioning: false
|
|
||||||
tags:
|
|
||||||
app: woodpecker
|
|
||||||
purpose: cnpg-backup
|
|
||||||
# Never drop the backups if the CR is removed; retire buckets by hand.
|
|
||||||
retainOnDelete: false
|
|
||||||
purgeOnDelete: true
|
|
||||||
---
|
|
||||||
# Nightly base backup. Continuous WAL archiving is always-on via the Cluster's
|
# Nightly base backup. Continuous WAL archiving is always-on via the Cluster's
|
||||||
# spec.backup.barmanObjectStore; this schedules the periodic full backup that
|
# spec.backup.barmanObjectStore; this schedules the periodic full backup that
|
||||||
# WAL is layered on top of. Schedules are staggered across clusters so the 8
|
# WAL is layered on top of. Schedules are staggered across clusters so the 8
|
||||||
|
|||||||
Reference in New Issue
Block a user