1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
--- apiVersion: v1 kind: PersistentVolume metadata: name: {{ pv_name }} labels: type: ebs spec: capacity: storage: {{ vol_size }}Gi accessModes: - ReadWriteOnce persistentVolumeReclaimPolicy: Retain awsElasticBlockStore: volumeID: aws://{{ vol_az }}/{{ vol_id }} fsType: ext4