How to create a pv and pvc from EBS in eks

0

I have a ebs volume created in a AZ and in the same AZ I have my ec2 running in eks. I want to craete a pv and pvc from ebs and attach it to ec2 when the pod is deployed.

feita há 2 meses341 visualizações
1 Resposta
1
Resposta aceita

Hello there,

You can accomplish this with the help of the Amazon EBS CSI driver which helps you to manage the lifecycle of Amazon EBS volumes as storage for the Kubernetes Volumes that you create. The driver supports two types of provisioning.

  1. Static Provisioning - Associate an externally-created EBS volume with a PersistentVolume (PV) for consumption within Kubernetes. This suites your use case. Refer example
  2. Dynamic Provisioning - Automatically create EBS volumes and associated PersistentVolumes (PV) from PersistentVolumeClaims) (PVC). Parameters can be passed via a StorageClass for fine-grained control over volume creation.

Follow this article for steps to install the driver https://repost.aws/knowledge-center/eks-modify-persistent-storage-snapshot

AWS
Olawale
respondido há 2 meses

Você não está conectado. Fazer login para postar uma resposta.

Uma boa resposta responde claramente à pergunta, dá feedback construtivo e incentiva o crescimento profissional de quem perguntou.

Diretrizes para responder a perguntas