k8up icon indicating copy to clipboard operation
k8up copied to clipboard

Tell backupcommand in which container it should run

Open tobru opened this issue 3 years ago • 1 comments

Summary

As user of K8up I want to control in which container of a Pod the backupcommand runs So that I'm sure it runs in the correct container.

Context

The backupcommand runs by default in the first container of a Pod. This imposes that one has control over the order of containers in a Pod and makes it impossible to run a backupcommand in the correct container if the order doesn't match.

We should provide a way to control in which container the backupcommand gets executed.

Out of Scope

No response

Further links

No response

Acceptance Criteria

No response

Implementation Ideas

An annotation which allows to specify the name of the container in which the backupcommand should be executed. E.g. k8up.io/backupcommand-container.

tobru avatar Nov 23 '21 12:11 tobru

Absolutely required. I just migrated from Velero to K8up, as K8up only backups pvc data, which works better with a GitOps approach. However I now stuck on this issue, as I haven't (easy?) control over the container order provided by Helm charts.

As workaround I think about using kubectl in a Pre-Backup pod, which then will call the backup command on the target pod and proper container. However - this is additional effort and requires additonal resources, like role/sa/rolebinding for running kubectl.

However - K8up rocks! ( I just miss the Velero CLI, with which I can list and restore backups from scheduled, previously backup runs. )

ThomasSteinbach avatar Apr 07 '22 15:04 ThomasSteinbach

Hi , This feature is available now?

vfolk30 avatar Mar 30 '23 11:03 vfolk30

Hi @vfolk30

Yes the feature has been released yesterday with K8up 2.7. https://github.com/k8up-io/k8up/releases/tag/v2.7.0

So I'm closing here.

Kidswiss avatar Mar 31 '23 07:03 Kidswiss