From 91079fe7502db46bf9acb871b6c2a62d25c8f6e7 Mon Sep 17 00:00:00 2001 From: XPA Date: Sat, 27 Jan 2024 16:15:40 +0900 Subject: [PATCH 1/3] chore: enable bleve in config --- secrets/mattermost.json | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/secrets/mattermost.json b/secrets/mattermost.json index d28c5a7..68832cb 100644 --- a/secrets/mattermost.json +++ b/secrets/mattermost.json @@ -484,10 +484,10 @@ "Trace": "" }, "BleveSettings": { - "IndexDir": "", - "EnableIndexing": false, - "EnableSearching": false, - "EnableAutocomplete": false, + "IndexDir": "/mattermost/bleve/", + "EnableIndexing": true, + "EnableSearching": true, + "EnableAutocomplete": true, "BulkIndexingTimeWindowSeconds": 3600 }, "DataRetentionSettings": { From 2654c392ee484b4c6ea65e95811a05683ebc949f Mon Sep 17 00:00:00 2001 From: XPA Date: Sat, 27 Jan 2024 16:16:04 +0900 Subject: [PATCH 2/3] feat: pvc --- kubernetes/mattermost/pvc.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 kubernetes/mattermost/pvc.yml diff --git a/kubernetes/mattermost/pvc.yml b/kubernetes/mattermost/pvc.yml new file mode 100644 index 0000000..c8381a2 --- /dev/null +++ b/kubernetes/mattermost/pvc.yml @@ -0,0 +1,11 @@ +apiVersion: v1 +kind: PersistentVolumeClaim +metadata: + name: mattermost-bleve-pvc +spec: + accessModes: + - ReadWriteOnce + resources: + requests: + storage: 2Gi + storageClassName: standard-rwo \ No newline at end of file From 0aeb7e8822c6dea787d686eead1753bc21373f49 Mon Sep 17 00:00:00 2001 From: XPA Date: Sat, 27 Jan 2024 16:17:38 +0900 Subject: [PATCH 3/3] feat: mount bleve cache directory --- kubernetes/mattermost/mattermost.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/kubernetes/mattermost/mattermost.yml b/kubernetes/mattermost/mattermost.yml index b46f247..81ec24f 100644 --- a/kubernetes/mattermost/mattermost.yml +++ b/kubernetes/mattermost/mattermost.yml @@ -66,9 +66,14 @@ spec: volumeMounts: - name: config mountPath: /mattermost/config/ + - name: bleve-cache + mountPath: /mattermost/bleve/ volumes: - name: config emptyDir: {} - name: secret secret: secretName: secret-configs + - name: bleve-cache + persistentVolumeClaim: + claimName: mattermost-bleve-pvc