From 218e89799bf02ce580173e47a02d02f16ac5f6be Mon Sep 17 00:00:00 2001 From: Sylvain Desbureaux Date: Wed, 5 Feb 2020 11:56:41 +0100 Subject: [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 Change-Id: I397e3d1f29fce9f6c77423ffa4375daffbd2a256 --- .../charts/message-router-kafka/templates/statefulset.yaml | 1 + 1 file changed, 1 insertion(+) 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 30e4c77576..aa97e32a9a 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 @@ -75,6 +75,7 @@ spec: - -exec - | chown -R 1000:1000 /opt/kafka/data; + rm -rf '/opt/kafka/data/lost+found'; cp /opt/kafka/tmpconfig/server.properties /opt/kafka/config/; chown 1000:1000 /opt/kafka/config/server.properties; cd /opt/kafka/config; -- cgit 1.2.3-korg