Kubernetes Backup Disaster Recovery Service Product Experience Tutorial

Author: Yin Min, Head of Hangzhou Station of KubeSphere Community User Committee

foreword

A Kubernetes cluster has its own self-healing function, but there are often unexpected situations that make the self-healing function ineffective. For example, a company colleague deletes a namespace, the storage object is cleaned up, the cluster is suddenly powered off, and the cluster upgrade fails. If there is no good backup tool and the habit of regular backup, it will undoubtedly be catastrophic for both the development environment and the production environment. If there is a friendly visual backup tool at this time to help the cluster perform scheduled backups, your work will be multiplied with half the effort. The following will recommend the backup disaster recovery service developed by Qingyun Technology Container Team based on the Velero open source backup tool.

Introduction to Cloud Native Backup Disaster Recovery Service

KubeSphere Cloud cloud-native backup and disaster recovery service is a Kubernetes backup and disaster recovery as-a-service product launched by the KubeSphere team for hybrid cloud scenarios. Users do not need to build a backup and disaster recovery infrastructure. Based on the native Kubernetes API, a visual interface is provided, which can cover most important scenarios of cloud-native data protection, and can be easily implemented across clusters, cloud service providers, and storage areas. Multi-location, on-demand backup and recovery between infrastructures. Log in to KubeSphere Cloud to back up and restore containers in a Kubernetes cluster.

Register a platform account

  1. Log in to the KubeSphere Cloud platform

  1. create Account

Prepare the cluster

  1. Go to the homepage, find [Resource Management] and select [Import Cluster]

  1. Fill in the relevant information of the cluster, and select the [Direct connection to Kubernetes cluster] method.

  1. get kubeconfig

Method 1: Managed Kubernetes cluster

Please refer to the product documentation of the corresponding cloud vendor, such as Alibaba Cloud, Huawei Cloud, Tencent Cloud, etc.

Method 2: Self-built Kubernetes cluster

(1) Execute on the master node

cat $HOME/.kube/config

(2) Please ensure that the address of the cluser.server field in kubeconfig can be accessed through the public network, or check skip TLS verification for import at the same time

  1. Verify cluster connection status

Add Object Repository

  1. Select [New Warehouse]

  1. Check if the warehouse is available

Create a backup plan

Note: The backup cluster namespace cannot contain PVCs or PVs with errors, otherwise it cannot be recovered! ! !

  1. Select [Create Backup]

  1. View backup plan status

Create a recovery plan

  1. Clear the services in the backup plan source cluster

  1. Select [Restore Backup]

  1. Create a backup plan

  1. View Recovery Plan Status

  1. View the target namespace recovery status

Summarize

When running a production-level Kubernetes cluster, no matter how stable your cluster is, regular backups are a must. The running state of the Kubernetes cluster is kept in ETCD to ensure the stability of your production environment. It is recommended that you make regular backups.

The application scenarios of KubeSphere Cloud cloud-native backup disaster recovery service include:

  1. System or hardware failure

Cloud-native backup and disaster recovery services can effectively reduce the risk of business interruption caused by failures and ensure the continuity of core business in the Kubernetes cluster.

  1. Environment changes during development and testing

The cloud native backup disaster recovery service can restore the data backed up in any period and in any warehouse in time when the environment changes and configuration adjustments occur during development and testing.

  1. Malicious damage or improper operation

Cloud-native backup disaster recovery service can avoid data loss caused by malicious damage or improper operation through data backup and recovery, and ensure data integrity and availability.

  1. Multi-cluster, multi-storage collaborative protection

The cloud-native backup disaster recovery service can easily realize multi-location, on-demand backup, recovery, and disaster recovery protection between infrastructures across clusters, cloud service providers, and storage areas.

  1. Cloud migration of container application data

Cloud native backup disaster recovery service provides a convenient way of data migration, allowing enterprises to flexibly and independently choose or change cloud service providers to avoid infrastructure binding.

This article is published by OpenWrite , a multi-post blog platform !

{{o.name}}
{{m.name}}

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324167070&siteId=291194637
Recommended