From: Kai Moritz Date: Tue, 3 Oct 2023 12:47:33 +0000 (+0200) Subject: Strimzi - Blog 4: persistent storage with default storage-class X-Git-Url: http://juplo.de/gitweb/?a=commitdiff_plain;h=f182e0f0dbb7ca9b49c4748da1c13c3f5ba49dd9;p=demos%2Fkafka%2Fmonitoring 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 --- 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: {}