Skip to content

Automated Etcd Backup and Restore for HyperShift Hosted Control Planes#2004

Open
apahim wants to merge 1 commit intoopenshift:masterfrom
apahim:automated-backups
Open

Automated Etcd Backup and Restore for HyperShift Hosted Control Planes#2004
apahim wants to merge 1 commit intoopenshift:masterfrom
apahim:automated-backups

Conversation

@apahim
Copy link
Copy Markdown

@apahim apahim commented May 8, 2026

This enhancement adds automated etcd backup to cloud storage and automatic restore on cluster creation for HyperShift hosted control planes.

A CronJob periodically snapshots etcd and bundles the snapshot with critical PKI secrets and the etcd encryption key into a .tar.gz archive uploaded to cloud storage.

When a new cluster is created with the same infraID and a backup exists, the snapshot and secrets are automatically restored.

The standalone OCP automated etcd backup enhancement (/enhancements/etcd/automated-backups.md) explicitly lists HyperShift as a non-goal; this enhancement fills that gap.

@openshift-ci openshift-ci Bot requested review from csrwng and enxebre May 8, 2026 17:25
@openshift-ci
Copy link
Copy Markdown
Contributor

openshift-ci Bot commented May 8, 2026

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please assign enxebre for approval. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@apahim apahim force-pushed the automated-backups branch 2 times, most recently from eb2807d to f3d9745 Compare May 8, 2026 18:14
@openshift-ci
Copy link
Copy Markdown
Contributor

openshift-ci Bot commented May 8, 2026

@apahim: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
ci/prow/markdownlint f3d9745 link true /test markdownlint

Full PR test history. Your PR dashboard.

Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here.

Copy link
Copy Markdown

@Ajpantuso Ajpantuso left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some general comments, but looks great!

Comment thread enhancements/hypershift/automated-etcd-backup-restore.md Outdated
Comment thread enhancements/hypershift/automated-etcd-backup-restore.md
@apahim apahim force-pushed the automated-backups branch from f3d9745 to 9aa37d9 Compare May 8, 2026 19:18
This enhancement adds automated etcd backup to cloud storage and
automatic restore on cluster creation for HyperShift hosted control
planes.

A CronJob periodically snapshots etcd and bundles the snapshot with
critical PKI secrets and the etcd encryption key into a `.tar.gz`
archive uploaded to cloud storage.

When a new cluster is created with the same `infraID` and a backup
exists, the snapshot and secrets are automatically restored.

The standalone OCP automated etcd backup enhancement
(`/enhancements/etcd/automated-backups.md`) explicitly lists HyperShift
as a non-goal; this enhancement fills that gap.

Signed-off-by: Amador Pahim <apahim@redhat.com>
@apahim apahim force-pushed the automated-backups branch from 9aa37d9 to 3bea14a Compare May 8, 2026 20:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants