Backing up and Restoring Kubernetes Data in etcd

30 minutes
  • 2 Learning Objectives

About this Hands-on Lab

Backups are an important part of any resilient system. Kubernetes is no exception. In this lab, you will have the opportunity to practice your skills by backing up and restoring a Kubernetes cluster state stored in etcd. This will help you get comfortable with the steps involved in backing up Kubernetes data.

Learning Objectives

Successfully complete this lab by achieving the following learning objectives:

Back Up the etcd Data

Log in to the etcd server and back up the etcd data to a file located at /home/cloud_user/etcd_backup.db.

Restore the etcd Data from the Backup

Restore your etcd data from the backup file /home/cloud_user/etcd_backup.db.

Additional Resources

You are working for BeeBox, a subscription service company that provides weekly shipments of bees to customers. The company is using Kubernetes to run some of their applications, and they want to make sure their Kubernetes infrastructure is robust and able to recover from failures.

Your task is to establish a backup and restore process for the Kubernetes cluster data. Back up the cluster's etcd data, then restore it to verify the process works.

You can find certificates to authenticate with etcd in /home/cloud_user/etcd-certs.

What are Hands-on Labs

Hands-on Labs are real environments created by industry experts to help you learn. These environments help you gain knowledge and experience, practice without compromising your system, test without risk, destroy without fear, and let you learn from your mistakes. Hands-on Labs: practice your skills before delivering in the real world.

Sign In
Welcome Back!

Psst…this one if you’ve been moved to ACG!

Get Started
Who’s going to be learning?