Search code examples
kubernetesapache-kafkastrimzi

Add volume for each strimzi kafka broker


I have currently 3 brokers and 3 zookeepers that were created using the strimzi k8s operator but i need 3 volumes seperated for each broker, how can i achieve this?


Solution

  • You can use JBOD storage type in your CR definition. This is one approach to providing increased data storage for Kafka brokers. It can also improve performance. Note that this is supported only for Kafka, not for Zookeeper.

    spec:
      kafka:
        storage:
          type: jbod
          volumes:
          - id: 0
            type: persistent-claim
            size: 10Gi
            deleteClaim: false
          - id: 1
            type: persistent-claim
            size: 10Gi
            deleteClaim: false
          - id: 2
            type: persistent-claim
            size: 10Gi
            deleteClaim: false