Created
August 2, 2022 06:38
-
-
Save haeramkeem/16ca3a8c6b5b5406a348a25238c9c557 to your computer and use it in GitHub Desktop.
Elasticsearch local PV sample
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
apiVersion: v1 | |
kind: PersistentVolume | |
metadata: | |
## PV name | |
name: elasticsearch-master-0 | |
spec: | |
capacity: | |
## PV size | |
storage: 10Gi | |
volumeMode: Filesystem | |
accessModes: | |
- ReadWriteOnce | |
persistentVolumeReclaimPolicy: Delete | |
## PV SC name | |
storageClassName: local-mnt | |
local: | |
## Mount path | |
path: /mnt/nfs_shared/elasticsearch-master-0 | |
nodeAffinity: | |
required: | |
nodeSelectorTerms: | |
- matchExpressions: | |
- key: kubernetes.io/hostname | |
operator: In | |
values: | |
## Node names | |
- k8s-m1 | |
- k8s-w1 | |
--- | |
apiVersion: v1 | |
kind: PersistentVolume | |
metadata: | |
## PV name | |
name: elasticsearch-master-1 | |
spec: | |
capacity: | |
## PV size | |
storage: 10Gi | |
volumeMode: Filesystem | |
accessModes: | |
- ReadWriteOnce | |
persistentVolumeReclaimPolicy: Delete | |
## PV SC name | |
storageClassName: local-mnt | |
local: | |
## Mount path | |
path: /mnt/nfs_shared/elasticsearch-master-1 | |
nodeAffinity: | |
required: | |
nodeSelectorTerms: | |
- matchExpressions: | |
- key: kubernetes.io/hostname | |
operator: In | |
values: | |
## Node names | |
- k8s-m1 | |
- k8s-w1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment