From f182e0f0dbb7ca9b49c4748da1c13c3f5ba49dd9 Mon Sep 17 00:00:00 2001 From: Kai Moritz Date: Tue, 3 Oct 2023 14:47:33 +0200 Subject: [PATCH] Strimzi - Blog 4: persistent storage with default storage-class kubectl -n juplo apply -f cluster.yaml kubectl -n juplo get pvc kubectl -n juplo get pvc data-0-juplo-kafka-0 -o yaml --- strimzi-kafka/cluster.yaml | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/strimzi-kafka/cluster.yaml b/strimzi-kafka/cluster.yaml index e1afdc7..3d9f95b 100644 --- a/strimzi-kafka/cluster.yaml +++ b/strimzi-kafka/cluster.yaml @@ -23,10 +23,18 @@ spec: min.insync.replicas: 1 inter.broker.protocol.version: "3.5" storage: - type: ephemeral + type: jbod + volumes: + - id: 0 + type: persistent-claim + size: 1Gi + deleteClaim: false zookeeper: replicas: 1 storage: - type: ephemeral + storage: + type: persistent-claim + size: 500Mi + deleteClaim: false entityOperator: topicOperator: {} -- 2.20.1