-
Hi everyone, I am setting up Kafka with cruise control enabled. Following is my kafka.yml with disabled ssl and security for Cruise Control. apiVersion: kafka.strimzi.io/v1beta2
kind: Kafka
metadata:
name: cluster-11
namespace: kafka
spec:
kafka:
version: 3.6.0
replicas: 3
listeners:
- name: plain
port: 9092
type: internal
tls: false
- name: tls
port: 9093
type: internal
tls: true
- name: external
port: 9094
type: ingress
tls: true
configuration:
bootstrap:
# bootstrap
brokers:
# brokers
config:
# config ...
zookeeper:
replicas: 3
storage:
type: persistent-claim
size: 10Gi
deleteClaim: true
entityOperator:
topicOperator: {}
userOperator: {}
cruiseControl:
config:
webserver.security.enable: false
webserver.ssl.enable: false And also I apply for kafka rebalance using following yaml apiVersion: kafka.strimzi.io/v1beta2
kind: KafkaRebalance
metadata:
name: cluster-11-rebalance
namespace: kafka
labels:
strimzi.io/cluster: cluster-11
spec: {} Once applied, I can see that all pods are running. and services is all up and running. Now, the problem is, I cannot access Cruise Control REST API from other pods except cruise control pod. I am accessing using internal domain This one is result from cruise control pods, I got response immediately.
But if I access it from other pod, let say
With this issue, I cannot expose Cruise Control Rest API with Ingress. Any ingress that point to cruise control service, will have connection timed out. Any suggestion? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
In general, we do not provide access to the REST API. Using the REST API might conflict with the operator and cause issues. The right way to use Cruise Control is using the KafkaRebalance resource. That said, one of the things you can check are network policies -> did you create some network policy to allow you access to the REST API? |
Beta Was this translation helpful? Give feedback.
GET requests should be fine. But if you would use Cruise Control independently, it might for example interfere with rolling updates or scaledowns etc.
As for the network policy -> you cannot delete the one Strimzi creates. That is there to ensure Strimzi can communicate with Cruise Control. But you can add your own policy that adds your own rules for your application to access it.