[DMaaP MR] Remove "lost+found" in kafka PVC 85/106485/1
authorSylvain Desbureaux <sylvain.desbureaux@orange.com>
Thu, 23 Apr 2020 08:19:14 +0000 (10:19 +0200)
committerSylvain Desbureaux <sylvain.desbureaux@orange.com>
Thu, 23 Apr 2020 08:19:14 +0000 (10:19 +0200)
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

kubernetes/dmaap/components/message-router/charts/message-router-kafka/templates/statefulset.yaml

index 4ba11ec..0163fbd 100644 (file)
@@ -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 }}