-
Notifications
You must be signed in to change notification settings - Fork 14.7k
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
Document backing up a container using Kubernetes #43307
Comments
/language en |
/sig docs |
#43112 (comment) this comments referencing to raise this issue. |
/retitle Document backing up a container using Kubernetes |
I would:
We could make a tutorial about how to do a simple backup of a volume, such as saving a gzip copy of the backing storage, delete the PersistentVolume and its storage, and then restore. If we have capacity. |
container backup is not fully working yet ... |
@sftim yes making Tutorial will be useful.
@sftim I do agree, according to this issue #43112 it will be good. |
Inactive from long time as there is no any conclusion on it . |
/close |
@niranjandarshann: Closing this issue. 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/test-infra repository. |
/reopen |
@niranjandarshann: Reopened this issue. 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/test-infra repository. |
@sftim @tengqm I had gone through the doc of Kubernetes and yes I hadnot finad anything related to backup. Here I think if we mention something informative for backup in kubernetes through various blogs and docs available on internet will be useful for our readers and the developers. I dont know whether it will be good or not but yes mentioning about backup in kubernetes will be important and new. Here backup means everything like configuration, namespaces, and especially persistent volumes. Whether it will be possible? Can we investigate more for this. |
/triage accepted See #43307 (comment) for guidance |
Do we have a use case for "backup a container"? |
@tengqm Some use case of backing up container in k8s are:
|
According to the 12-factor app, you wouldn't couple your config data with your app (container here). You store them somewhere else. For example, in kubernetes, you store them in ConfigMaps. You can store them in a PV volume as well. In any cases, you don't backup the container.
That is something related to your image registry, e.g. Harbor or some light-weight alternatives. It has nothing to do with container instances. You can store many things in the registry, for various purposes.
A stateful application has its data stored in a PV volume. The data is not persisted in the container. You would not do that. You would not treat a container as a VM. Treating containers like VMs would make things a lot difficult to manage. On the contrary, you may want to forbid writing anything to your container's file system, for security's sake or for availability's sake.
Most of the existing solutions, AFAICT, are based on the velero framework. Some vendors create their own extensions, such as backing up static pod manifests or control plane configurations. But I would NOT call that "container backup". Remember that one key design consideration behind Pods (not to mention Containers inside it) is making them dispensable. They don't have a fixed IP address! Imagine that. They are designed to be short lived. Why bother to backup them then? |
We can tell people about good practice. However, Kubernetes does aim to help you run your legacy workloads too; containers can be svelte things with a single 27MiB binary based on We recommend the svelte one but we don't insist. Yes, you should back up your volumes and not your containers, but we should ideally tell you - in outline - how to achieve both ways whilst still firmly recommending a cloud native approach. |
@sftim What i thaught is the general approach for taking backup of configurational file. Please have a look and let me know WDYT about this. 1 Approach is General Approach
I investigated and got some information. In these approach there is no any third party involvement is required. WDYT? |
My thinking from #43307 (comment) and #43307 (comment) stands. Maybe what you're proposing would work better as a blog article rather than documentation? |
Ok got your point. |
Proposed PR #49452 considering a simple backup of a volume, such as saving a gzip copy of the backing storage, delete the PersistentVolume and its storage, and then restore. by creating a Tutorial. PTAL ! |
This is a Feature Request
There is the information gap in the kubernetes documentation in which no any supportive information is provided for the backup of Container in stateless or stateful container state.
What would you like to be added
The brief description about taking regular backup of stateless or stateful container is needed if yes then it should be updated with the respective information. To help reader wondering about this information.
Why is this needed
It is needed as it help reader to find the information about the Container backup.
To update the document with missing information.
Page to Update
https://kubernetes.io/docs/concepts/containers/ or which you can find more relevant.
The text was updated successfully, but these errors were encountered: