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