-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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 request: Take a snapshot of a cluster #9991
Comments
Did you check out the |
|
You did not mention what platform and driver this was for. I'm not sure the "pause" feature will survive such a "burn"... We talked about adding the suspend/resume feature earlier, but ended up adding the pause/unpause feature instead. There might be other "kubernetes backup" software, to take snapshots of running clusters. Maybe they can be integrated. |
I'm looking for this feature for Linux with the Docker driver mainly. A quick google shows that it is possible and easy to do: https://stackoverflow.com/questions/26331651/how-can-i-backup-a-docker-container-with-its-data-volumes. Regarding other drivers, most of them should have the feature of snapshotting or suspending/resuming as you mentioned.
I would love to see the integration of such software. Any pointers? |
Something like https://github.com/vmware-tanzu/velero perhaps ? |
I checked https://github.com/vmware-tanzu/velero and it's cloud provider specific. I'm unclear how that would apply for minikube. |
this is a good idea ! we have plans to explore the idea of freezing a cluster to potentially start minikube faster with a frozen cluster. this is on our roadmap to explore. |
Yup, we are aiming to have a design for this this quarter. I will update this issue as we know more! |
Issues go stale after 90d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-contributor-experience at kubernetes/community. |
Hello, I'm curious that while we are waiting for this feature to be ready, is there anything you could share we do in the meantime, e.g. commands to run to take a snapshot of the running cluster, export it, and run the snapshot at another place. |
Stale issues rot after 30d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-contributor-experience at kubernetes/community. |
This unfortunately fell by the wayside as priorities shifted in our roadmap. I still think it's a great idea, but a design was never fully finished. |
Is there a chance this is coming back? |
The minikube maintainers don't currently have the bandwidth to work on this feature, but it's still a cool idea! I'll add the help wanted label and would be happy to look at a PR. |
I can see something like this: Creating cluster:
Using cluster form last persisted state:
Reverting to snapshot, dropping all changes since the snapshot:
Taking a snapshot is easy with vm based drivers (e.g. kvm2). Not sure about other drivers, For kvm2/qemu based drivers, creating a snapshot can be simple as:
Reverting a snapshot:
If the original disk was raw, we need to change the disk in the vm xml. Creating and deleting live snapshot can be nice but is not really needed This can awesome feature of CI. In ramen we have a test environment creating 3 clusters If we can re-create the environment periodically and starting from a snapshot, Is it possible to implement such feature as a 3rd party addon? Do we have APIs to query |
Steps to reproduce the issue:
This is a feature request not an issue.
I would like to be able to take a snapshot of the cluster and reuse it for CI for a faster boot time. I have functional tests that run on a minikube cluster but the tests require installation of a bunch of software, e.g. ingress-nginx, cert-manager etc. I'm wondering whether there is a way to "pre-burn" a minikube image by taking a snapshot of a running cluster. The image includes a version of the minikube k8s and software that I install on it. The image is then used in CI to avoid reinstalling all the basic software every time. This would immensely shorten the CI time.
Full output of failed command:
N/A
Full output of
minikube start
command used, if not already included:N/A
Optional: Full output of
minikube logs
command:N/A
The text was updated successfully, but these errors were encountered: