Managing Ephemeral and Persistent Storage on Amazon EKS

Managing Ephemeral and Persistent Storage on Amazon EKS
Managing Ephemeral and Persistent Storage on Amazon EKS

CLOUD LABS



Managing Ephemeral and Persistent Storage on Amazon EKS

In this Cloud Lab, you’ll learn to manage ephemeral and persistent storage in Amazon EKS by deploying pods using emptyDir for ephemeral volumes and working with Amazon EBS for persistent storage.

10 Tasks

intermediate

2hr 30m

Certificate of Completion

Desktop OnlyDevice is not compatible.
No Setup Required
Amazon Web Services

Learning Objectives

Working knowledge of managing ephemeral volumes on Amazon EKS
An understanding of persistent volume provisioning with Amazon EBS
Hands-on experience configuring pods with both short-lived and durable storage
The ability to install and configure the EBS CSI driver in Amazon EKS
The ability to create and manage persistent volume claims in Kubernetes

Technologies
EKS
EBS logoEBS
EC2 logoEC2
Cloud Lab Overview

Amazon Elastic Kubernetes Service (Amazon EKS) is a managed service that simplifies containerized application deployment, management, and scaling using Kubernetes. With EKS, you don’t need to install or manage the control plane components of Kubernetes. AWS handles that for you, allowing you to focus on managing your applications and the underlying computing resources.

In this Cloud Lab, you’ll learn how to work with two types of storage volumes on Kubernetes running on Amazon EKS: ephemeral volumes and persistent volumes. You’ll begin by installing the necessary tools and creating an EKS cluster with a single node group. Then, you’ll deploy a pod that uses an ephemeral volume backed by the emptyDir volume type, which is useful for temporary data storage that is discarded when the pod is removed. Next, you’ll transition to working with persistent storage using Amazon EBS. You’ll install the EBS CSI driver and provision a persistent volume backed by an EBS volume. You’ll attach a persistent volume claim to a pod, demonstrating how data can be preserved across pod restarts or failures.

After completing this Cloud Lab, you’ll understand how to use ephemeral and persistent volumes on Amazon EKS to manage storage in Kubernetes. You’ll gain hands-on experience configuring pods with short-lived and durable storage, installing the EBS CSI driver, and managing volume claims in a real EKS environment using eksctl and kubectl.

Below is the high-level architecture diagram of the infrastructure you’ll create in this Cloud Lab:

Amazon EKS with ephemeral and persistent storage
Amazon EKS with ephemeral and persistent storage
Cloud Lab Tasks
1.Introduction
Getting Started
2.EKS Cluster Setup
Create an IAM Role
Create an EKS Cluster
3.Ephemeral Volume
Create a Pod with an Ephemeral Volume
Test the Ephemeral emptyDir Volume in the Pod
4.Persistent Volume
Create an EBS Volume
Create a Persistent Volume and Persistent Volume Claim
Test Data Persistence Using a Persistent Volume
5.Conclusion
Clean Up
Wrap Up
Labs Rules Apply
Stay within resource usage requirements.
Do not engage in cryptocurrency mining.
Do not engage in or encourage activity that is illegal.

Before you start...

Try these optional labs before starting this lab.

Relevant Course

Use the following content to review prerequisites or explore specific concepts in detail.

Hear what others have to say
Join 1.4 million developers working at companies like