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

[Feature] Backup already existing etcd cluster #783

Open
jurim76 opened this issue Sep 30, 2024 · 2 comments
Open

[Feature] Backup already existing etcd cluster #783

jurim76 opened this issue Sep 30, 2024 · 2 comments
Labels
kind/enhancement Enhancement, improvement, extension

Comments

@jurim76
Copy link

jurim76 commented Sep 30, 2024

Is it possible to use "etcdbrct snapshot" to backup already existing etcd cluster, using etcdbrctl pod's hostPath and hostNetwork?
etcdbrctl pod example manifest

apiVersion: v1
kind: Pod
metadata:
  labels:
    owner_team: ops-devops
  name: etcd-backup
spec:
  imagePullSecrets:
    - name: regcred
  containers:
  - image: local.reg/etcd-backup:latest
    name: etcd-backup
    volumeMounts:
    - name: etcd-certs
      mountPath: /etc/kubernetes/pki/etcd
      readOnly: true
    - name: data
      mountPath: /data
  tolerations:
  - effect: NoSchedule
    operator: Exists
  hostNetwork: true
  volumes:
  - name: etcd-certs
    hostPath:
      path: /etc/kubernetes/pki/etcd
      type: DirectoryOrCreate
  - name: data
    emptyDir: {}
    ```
 
@jurim76 jurim76 added the kind/enhancement Enhancement, improvement, extension label Sep 30, 2024
@renormalize
Copy link
Member

@jurim76

etcd-backup-restore is its current form is not capable of backing up an already existing etcd cluster. It is designed to act as a sidecar to an etcd container; and is typically used with etcd-wrapper.

The maintainers do see the value in future versions of etcd-backup-restore being able to be deployed standalone so that it can start backing up already existing etcd clusters. There are plans among the maintainers to introduce this functionality some time in the future. There is no roadmap for this currently.

@renormalize
Copy link
Member

@jurim76 I would recommend you take at #725, which contains information that might be relevant to you. We've unfortunately not been able to get all of this information into the docs yet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/enhancement Enhancement, improvement, extension
Projects
None yet
Development

No branches or pull requests

2 participants