Taikun Help Center


Kubernetes is a highly resilient platform, but like any other system, it is still susceptible to data loss or corruption. Therefore, to ensure that your Kubernetes deployment is always available and running smoothly, it is essential to have a backup strategy in place.
In simple terms, a backup for Kubernetes is a copy of your cluster’s data stored separately from the original data. This copy is created regularly to ensure that you always have a recent and reliable version of your Kubernetes data that can be used to restore your cluster in case of data loss or corruption.

Using backup in Kubernetes can provide several benefits, including:

  1. Disaster recovery: Backups provide a way to recover from data loss or system failures. Regularly backing up Kubernetes resources can restore your system to a previously working state in case of a disaster or failure.
  2. Data protection: Backups protect your data from accidental or malicious deletion, corruption, or modification. Having a backup copy of your data can recover it even if the original data is lost or compromised.
  3. Compliance: Backups can help you comply with regulatory requirements for data retention and protection. For example, some regulations may require that you retain data for a certain period and have a backup copy in case of data loss.
  4. Testing and development: Backups can be used for testing and development purposes. Restoring backups to a test or development environment allows you to test new features or changes without affecting the production environment.
  5. Simplified operations: Automated backups and restores can simplify Kubernetes operations and reduce the time and effort required to manage them. Backups can be scheduled to run automatically, and restores can be initiated with a few clicks or commands.
  6. Flexibility: Backups provide flexibility in managing Kubernetes resources. You can use backups to migrate resources to different Kubernetes clusters or cloud providers or to roll back changes to previous versions.

Taikun creates a separate backup resource that describes which Kubernetes resources to backup, how often to backup them, and where to store the backups.

When a backup is triggered, Taikun takes a snapshot of the desired Kubernetes resources and writes them to the specified backup storage location, a cloud storage service, a network-attached storage device, or a local disk. Taikun can also encrypt and compress the backup data for security and space-saving purposes.

One of the main benefits of using Taikun for backup is that it simplifies the backup process and reduces the likelihood of errors. Taikun automates the backup scheduling and execution, eliminating the need for manual backup scripts or commands. Moreover, Taikun provides a consistent backup format and structure, making restoring the backups to the same or different Kubernetes clusters easy.

Without Taikun, backup and restore operations are typically done manually or through custom scripts, which can be error-prone and time-consuming. It can also be challenging to ensure that all required Kubernetes resources are backed up and to maintain consistency between backups taken at different times. Additionally, backup data may be stored in various formats and locations, making it difficult to restore the data in case of a disaster or failure.

Bind a Backup Credential to your Project in Taikun

To enable backup in Taikun, you’ll need to create backup credentials first. This process is easy and can be done through the Taikun web interface. Once you’ve created your backup credentials, you can define backup policies and start backing up your Kubernetes data. You can enable backup during creation of a Project, or even after your Project is already created. For more information on how to enable backup in Taikun, check out our Documentation.