From b69752741e8a4915b21b7fe9060fc75b31ff9659 Mon Sep 17 00:00:00 2001 From: Alexander Kiel Date: Mon, 6 Jun 2022 14:26:10 +0200 Subject: [PATCH] Document Database Migration in Kubernetes --- docs/database/migration.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/docs/database/migration.md b/docs/database/migration.md index 240323b8e..cd84238dd 100644 --- a/docs/database/migration.md +++ b/docs/database/migration.md @@ -39,6 +39,20 @@ backup! Exit the shell und start Blaze normally. +### On Kubernetes + +You can use an init container to delete the index store on Kubernetes: + +```yaml +initContainers: +- name: delete-index + image: busybox + command: [ 'sh', '-c', "rm -r /data/index" ] + volumeMounts: + - name: data + mountPath: /data +``` + ## Index Store Migration at Start If you start Blaze without an index store, it will use the transaction log and the resource store to recreate the index