Configuring Persistent Storage for Google Kubernetes Engine

Опубликовано: 29 Сентябрь 2024
на канале: Sani Kamal
950
5

Overview
=======================
In this lab, you set up PersistentVolumes and PersistentVolumeClaims. PersistentVolumes are storage that is available to a Kubernetes cluster. PersistentVolumeClaims enable Pods to access PersistentVolumes. Without PersistentVolumeClaims Pods are mostly ephemeral, so you should use PersistentVolumeClaims for any data that you expect to survive Pod scaling, updating, or migrating.

Objectives
============================
In this lab, you learn how to perform the following tasks:

Create manifests for PersistentVolumes (PVs) and PersistentVolumeClaims (PVCs) for Google Cloud persistent disks (dynamically created or existing)

Mount Google Cloud persistent disk PVCs as volumes in Pods

Use manifests to create StatefulSets

Mount Google Cloud persistent disk PVCs as volumes in StatefulSets

Verify the connection of Pods in StatefulSets to particular PVs as the Pods are stopped and restarted