summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSylvain Desbureaux <sylvain.desbureaux@orange.com>2020-04-23 10:19:14 +0200
committerSylvain Desbureaux <sylvain.desbureaux@orange.com>2020-04-23 10:19:14 +0200
commitdabbea5fd5cb1b0d2a4d4a487cc73f8e3de56e1c (patch)
tree9ed65356f984615078e48e14d5da87ddb2be54a0
parent996ab96fabdf0fbba8d8f1430a7a2c6825e6ca4f (diff)
[DMaaP MR] Remove "lost+found" in kafka PVC
When using a storage class, kafka data is set on top of a partition and then 'lost+found' ext4 folder, which is automatically created, is seen as a topic but with bad naming. So we remove this folder in the init script. Issue-ID: OOM-1227 Signed-off-by: Sylvain Desbureaux <sylvain.desbureaux@orange.com> Change-Id: If04304326fc5478f791d8290b8ceb39753c59c2f
-rw-r--r--kubernetes/dmaap/components/message-router/charts/message-router-kafka/templates/statefulset.yaml1
1 files changed, 1 insertions, 0 deletions
diff --git a/kubernetes/dmaap/components/message-router/charts/message-router-kafka/templates/statefulset.yaml b/kubernetes/dmaap/components/message-router/charts/message-router-kafka/templates/statefulset.yaml
index 4ba11ec8c7..0163fbd5d4 100644
--- a/kubernetes/dmaap/components/message-router/charts/message-router-kafka/templates/statefulset.yaml
+++ b/kubernetes/dmaap/components/message-router/charts/message-router-kafka/templates/statefulset.yaml
@@ -82,6 +82,7 @@ spec:
- sh
- -exec
- |
+ rm -rf '/var/lib/kafka/data/lost+found';
chown -R 1000:0 /var/lib/kafka/data;
image: "{{ .Values.busyBoxRepository }}/{{ .Values.busyBoxImage }}"
imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}