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 個月前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南