From 82b0dbd1a7ea529731a8bf2f615378c9a2fd89d3 Mon Sep 17 00:00:00 2001 From: Bob Ong Date: Wed, 10 Jul 2024 15:46:08 +0800 Subject: [PATCH] [Deployment] Set elasticsearch pv class to do-block-storage-retain --- .../elasticsearch-deployment.yaml | 20 +++++-------------- 1 file changed, 5 insertions(+), 15 deletions(-) diff --git a/kube/base-components/elasticsearch-deployment.yaml b/kube/base-components/elasticsearch-deployment.yaml index 25bd918..738126f 100644 --- a/kube/base-components/elasticsearch-deployment.yaml +++ b/kube/base-components/elasticsearch-deployment.yaml @@ -58,7 +58,7 @@ spec: - name: es-data persistentVolumeClaim: claimName: es-pvc - - name: elasticsearch-,.ujv config + - name: elasticsearch-config configMap: name: elasticsearch-config --- @@ -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 @@ -96,7 +84,9 @@ spec: - ReadWriteOnce resources: requests: - storage: 80Gi + storage: 100Gi + storageClassName: do-block-storage-retain + --- # Elasticsearch Service apiVersion: v1