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