How to dynamically create EBS volume with Kubernetes Persistence Volume -


i'm aware can use aws cli create ebs volume , volume id , add persistentvolume config below under volumeid.

i don't want use aws cli create ebs volume, question is, how use kubernetes create ebs volume dynamically without using cli ?

apiversion: "v1" kind: "persistentvolume" metadata:   name: "pv0001"  spec:   capacity:     storage: "5gi"    accessmodes:     - "readwriteonce"   awselasticblockstore:      fstype: "ext4"      volumeid: "volume-id"  

by default should working on decently provisioned cluster. have storageclassname defined correctly on matching pvc , pv et provisioned (no need precreate pv object, claim)

https://kubernetes.io/docs/concepts/storage/persistent-volumes/#persistentvolumeclaims


Comments

Popular posts from this blog

neo4j - finding mutual friends in a cypher statement starting with three or more persons -

php - How to remove letter in front of the word laravel -

minify - Minimizing css files -