-
Notifications
You must be signed in to change notification settings - Fork 127
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
ETCD-636: add automated backup sidecar #1287
Conversation
@Elbehery: This pull request references ETCD-636 which is a valid jira issue. Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the story to target the "4.17.0" version, but no target version was set. In response to this:
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 openshift-eng/jira-lifecycle-plugin repository. |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: Elbehery The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
3d39bd9
to
7491a2d
Compare
/retest |
822750b
to
803e77a
Compare
bindata/etcd/pod.yaml
Outdated
- | | ||
#!/bin/sh | ||
set -euo pipefail | ||
cp --verbose --recursive --preserve --reflink=auto /var/lib/etcd/ /var/backup/etcd |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I suggest you make this a command, so we have some go code we can also test properly. Eg in here: https://github.com/openshift/cluster-etcd-operator/tree/master/pkg/cmd
Didn't we want to take the snapshot with etcdctl for starters? and there's no retention and schedule either
803e77a
to
fbd8c0b
Compare
/label tide/merge-method-squash |
pkg/operator/periodicbackupcontroller/periodicbackupcontroller.go
Outdated
Show resolved
Hide resolved
08917b6
to
898db4b
Compare
/test e2e-operator |
@Elbehery: The following commands are available to trigger required jobs:
The following commands are available to trigger optional jobs:
Use
In response to this:
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. |
failures are due to authentication to the image registry
|
/retest-required |
1 similar comment
/retest-required |
3a09a28
to
7bd5e3b
Compare
4795bb3
to
7e61751
Compare
7e61751
to
b4f9919
Compare
@Elbehery: The following tests failed, say
Full PR test history. Your PR dashboard. 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. |
/hold |
- hostPath: | ||
path: /var/backup/etcd | ||
name: backup-dir | ||
- hostPath: | ||
path: /etc/kubernetes | ||
name: config-dir |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Still have to review to this later and see if all of this aligns with what's outlined in the enhancement, but manifest changes related to this feature like this need to be feature gated and can't be in GA by default.
closing this in favor of #1301 |
This PR add an etcd backup sidecar container to the etcd pod manifest.
The container copies the snapshot state upon changes from the etcd data dir into backup dir.
fixes https://issues.redhat.com/browse/ETCD-636
cc @openshift/openshift-team-etcd