apiVersion: storage.k8s.io/v1
kind: StorageClass
metadata:
  name: ebs-storage-class
# using in-tree ebs volume provisioner
provisioner: kubernetes.io/aws-ebs
# delay the binding and provisioning of a PersistentVolume until a Pod using the PersistentVolumeClaim is created.
# or else might cause unschedulable pods. Beacause the PersistentVolumes will be bound or provisioned without knowledge of the Pod's scheduling requirements. Ref: https://kubernetes.io/docs/concepts/storage/storage-classes/#volume-binding-mode.
volumeBindingMode: WaitForFirstConsumer
# Gp2 ssd disk is used for PV in aws
parameters:
  type: gp2
  fsType: ext4
