--- apiVersion: v1 kind: PersistentVolume metadata: name: local-elastic-0 spec: storageClassName: local-elastic capacity: storage: 50Gi accessModes: - ReadWriteOnce local: path: /data/elastic/es_data nodeAffinity: required: nodeSelectorTerms: - matchExpressions: - key: kubernetes.io/hostname operator: In values: - bfs-k8snode-10-2-1-6.hetzner.base.beaconfireinc.com --- apiVersion: v1 kind: PersistentVolume metadata: name: local-elastic-1 spec: storageClassName: local-elastic capacity: storage: 50Gi accessModes: - ReadWriteOnce local: path: /data/elastic/es_data nodeAffinity: required: nodeSelectorTerms: - matchExpressions: - key: kubernetes.io/hostname operator: In values: - bfs-k8snode-10-2-1-7.hetzner.base.beaconfireinc.com --- apiVersion: v1 kind: PersistentVolume metadata: name: local-elastic-2 spec: storageClassName: local-elastic capacity: storage: 50Gi accessModes: - ReadWriteOnce local: path: /data/elastic/es_data nodeAffinity: required: nodeSelectorTerms: - matchExpressions: - key: kubernetes.io/hostname operator: In values: - bfs-k8snode-10-2-1-8.hetzner.base.beaconfireinc.com --- apiVersion: storage.k8s.io/v1 kind: StorageClass metadata: name: local-elastic provisioner: openebs.io/local allowVolumeExpansion: true volumeBindingMode: WaitForFirstConsumer