Openshift Strimzi operator and permission for KafkaNodePool can write into log directory and data ? #11624
Replies: 2 comments
-
Hey, it's hard to say what can be an issue without logs and configs. It would be great to have logs from the operator and full configuration of Kafka (CR with the status as well). |
Beta Was this translation helpful? Give feedback.
-
Please keep in mind that hostPath storage is not the best choice. If you want to use local storage, you should use Local Persistent volumes. You did not share anything that would suggest permissions are an issue. But keep in mind that it is your responsibility as the provisioner of the storage to make sure the storage is writable. Strimzi cannot do that. Also, keep in mind that OpenShift usually uses its own security settings for all applications. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
i have try to run a kafka cluster with (3 : Borkers-Controllers) (for a POC, not production) on Openshift with the Strimzi Operator.
I have created a [my-cluster-kafka] Kind : Kafka (NotReady)
i have created a KafkaNodePool (3 brokers/Controller) (but not POD created)
i have created 3 Persistence Volume (no-provisionning)
the second with :
path: /tmp/data-0-my-cluster-pv-002
claimRef. name: data-0-my-cluster-kafka-my-pool-1
the third with :
path: /tmp/data-0-my-cluster-pv-003
claimRef. name: data-0-my-cluster-kafka-my-pool-2
the PVC are created and the status is BOUND.
but my cluster Kafka says :
status: autoRebalance: lastTransitionTime: '2025-07-08T07:59:55.133059782Z' state: Idle conditions: - lastTransitionTime: '2025-07-08T09:12:11.481923837Z' message: Exceeded timeout of 300000ms while waiting for Pods resource my-cluster-kafka-my-pool-0 in namespace kafka to be ready reason: TimeoutException status: 'True' type: NotReady kafkaNodePools: - name: my-pool observedGeneration: 2
i have try to setup the securityContext for pod :
template: pod: securityContext: fsGroup: 0 runAsUser: 0
but nothing work.
Can you see me my mistake ?
I want only than kafka write data on one node hostpath /tmp/data-0-my-cluster-pv-001 ; /tmp/data-0-my-cluster-pv-002 ; /tmp/data-0-my-cluster-pv-003
no provisionning, no external. Just write on one node. for run.
Thanks you.
Fabrice
Beta Was this translation helpful? Give feedback.
All reactions