Skip to content

Commit

Permalink
[Deployment] Set elasticsearch pv class to do-block-storage-retain
Browse files Browse the repository at this point in the history
  • Loading branch information
welbon committed Jul 10, 2024
1 parent 5c04432 commit 82b0dbd
Showing 1 changed file with 5 additions and 15 deletions.
20 changes: 5 additions & 15 deletions kube/base-components/elasticsearch-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ spec:
- name: es-data
persistentVolumeClaim:
claimName: es-pvc
- name: elasticsearch-,.ujv config
- name: elasticsearch-config
configMap:
name: elasticsearch-config
---
Expand All @@ -72,19 +72,7 @@ data:
xpack.security.enabled: true
xpack.license.self_generated.type: basic
network.host: 0.0.0.0
---
# Elasticsearch Persistent Volume
apiVersion: v1
kind: PersistentVolume
metadata:
name: es-pv
spec:
capacity:
storage: 80Gi
accessModes:
- ReadWriteOnce
hostPath:
path: /mnt/data/es
---
# Elasticsearch Persistent Volume Claim
apiVersion: v1
Expand All @@ -96,7 +84,9 @@ spec:
- ReadWriteOnce
resources:
requests:
storage: 80Gi
storage: 100Gi
storageClassName: do-block-storage-retain

---
# Elasticsearch Service
apiVersion: v1
Expand Down

0 comments on commit 82b0dbd

Please sign in to comment.