备份在Kubernetes上的部署。

huangapple go评论70阅读模式
英文:

Backing up a deployment on kubernetes

问题

I've been fiddling around with kubernetes a bit and a question I can't seem to understand (after some light reading) is that how would I even start or plan to backup a deployment?

关于 Kubernetes,我一直在摸索一些东西,但有一个问题我似乎无法理解(在轻松阅读一些内容后),那就是我应该如何开始或计划备份部署?

For example, if im using this docker image in kubernetes :
https://hub.docker.com/_/wordpress/

例如,如果我在 Kubernetes 中使用这个 Docker 镜像:
https://hub.docker.com/_/wordpress/

How would i back that image up inside kubernetes so that i don't lose the data?

我应该如何在 Kubernetes 中备份该镜像,以确保不会丢失数据?

With a custom app - i dont have to worry about anything because my it's all stateless and my database is not inside kubernetes. Because i dont know how to manage backups im still not fully confident about using kubernetes

对于自定义应用程序 - 我不必担心任何事情,因为它都是无状态的,我的数据库不在 Kubernetes 中。因为我不知道如何管理备份,所以我对使用 Kubernetes 仍然没有完全的信心。

Any information is appreciated regarding kubernetes backups

关于 Kubernetes 备份,任何信息都受欢迎。

英文:

I've been fiddling around with kubernetes a bit and a question I can't seem to understand (after some light reading) is that how would I even start or plan to backup a deployment?

For example, if im using this docker image in kubernetes :
https://hub.docker.com/_/wordpress/

How would i back that image up inside kubernetes so that i don't lose the data?

With a custom app - i dont have to worry about anything because my it's all stateless and my database is not inside kubernetes. Because i dont know how to manage backups im still not fully confident about using kubernetes

Any information is appreciated regarding kubernetes backups

答案1

得分: 1

你可以使用 Valero 来备份你的Kubernetes集群资源和持久卷。它还提供了恢复、迁移和复制工作负载的功能。

英文:

You can use Valero which backs up your Kubernetes cluster resources and persistent volumes.It also provides ability to restore,migrate and replicate your workload.

答案2

得分: 1

根据Kubernetes 1.17发布公告,Kubernetes Volume Snapshot功能现在在Kubernetes v1.17中处于beta版本。

https://kubernetes.io/blog/2019/12/09/kubernetes-1-17-feature-cis-volume-snapshot-beta/

Kubernetes的快照原语充当基本构建块,解锁了为Kubernetes开发高级、企业级存储管理功能的能力,包括应用程序或集群级别的备份解决方案。

因此,如果您使用Kubernetes 1.17,您可以创建带有卷的有状态应用程序,然后使用新的快照功能来获取附加卷的时点快照,以便在需要时从快照还原应用程序。

请参考上述链接中的“使用Kubernetes创建新卷快照”和“从快照创建卷”的部分。

英文:

As per kubernetes 1.17 release announcement

The Kubernetes Volume Snapshot feature is now beta in Kubernetes v1.17

https://kubernetes.io/blog/2019/12/09/kubernetes-1-17-feature-cis-volume-snapshot-beta/

Kubernetes snapshot primitives act as basic building blocks that unlock the ability to develop advanced, enterprise grade, storage administration features for Kubernetes: including application or cluster level backup solutions.

So if you use kubernetes 1.17 then you can create stateful application with volumes and then use the new snapshots function to take point in time snap of attached volume to your application and then restore your application from snap when needed.

Refer "Creating a New Volume Snapshot with Kubernetes" and "Create Volume From Snapshot" section on above link.

答案3

得分: 0

如果我理解正确,你的问题实际上是:
如何备份我的数据?

然后,答案相当简单:Volumes
看看Kubernetes中不同类型的卷,选择最适合你需求的那个。

你可以在官方文档中找到你需要的一切。

英文:

If I understand well, your question is in fact :
How do I backup my data ?

Then, the answer is pretty simple : Volumes !
Have a look at all the different type of volumes in Kubernetes and use the one that suits the most your needs.

You'll find everything you need in the official documentation

答案4

得分: 0

我强烈建议查看Kasten的功能。我们专注于使Kubernetes的备份/还原和灾难恢复变得非常简单和安全,并内置了完整的CSI快照支持。演示视频可能会帮助解答您的疑虑。

英文:

I would highly recommend checkout out what Kasten does. We focus on making backup/restore and disaster recovery extremely easy and secure for Kubernetes and have full CSI Snapshot support built in too. The demo video might help answer how your concerns would be addressed.

huangapple
  • 本文由 发表于 2020年1月6日 21:50:24
  • 转载请务必保留本文链接:https://go.coder-hub.com/59613302.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定