Strimzi - Blog 4: persistent storage with default storage-class
authorKai Moritz <kai@juplo.de>
Tue, 3 Oct 2023 12:47:33 +0000 (14:47 +0200)
committerKai Moritz <kai@juplo.de>
Wed, 4 Oct 2023 17:41:13 +0000 (19:41 +0200)
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

index e1afdc7..3d9f95b 100644 (file)
@@ -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: {}