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 个月前342 查看次数
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 个月前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则