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.

질문됨 2달 전341회 조회
1개 답변
1
수락된 답변

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
답변함 2달 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠