From 3aa6d20e683ffa3222a2b9e7f7990a48bcd85710 Mon Sep 17 00:00:00 2001 From: Frederic Gurr Date: Wed, 14 Feb 2024 22:47:47 +0100 Subject: [PATCH] Add volumeClaimTemplate for elasticsearch to use CephFS --- kubernetes/open-vsx.org.libsonnet | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/kubernetes/open-vsx.org.libsonnet b/kubernetes/open-vsx.org.libsonnet index 9e6593cb..12868a61 100644 --- a/kubernetes/open-vsx.org.libsonnet +++ b/kubernetes/open-vsx.org.libsonnet @@ -264,6 +264,22 @@ local newElasticSearchCluster(env) = { nodeSets: [ { name: "default", + volumeClaimTemplates: [ + { + metadata: { + name: "elasticsearch-data" + }, + spec: { + accessModes: [ "ReadWriteMany" ], + resources: { + requests: { + storage: "1Gi" + } + }, + storageClassName: "cephfs-2repl" + } + } + ], config: { "node.roles": [ "master", "data" ], "node.store.allow_mmap": false