summaryrefslogtreecommitdiffstats
path: root/playbooks/adhoc/create_pv/pv-template.j2
blob: df082614bd8da0f42ffc60a3ca6f59650011bd89 (plain)
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