-
In past versions of Kafka clusters deployed with cruise control we have used the CC REST API to add/remove brokers (i.e. move partitions to/from). In the 0.28 version the REST API seems to be unavailable. Any way to access it? |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 1 reply
-
The APi was never accessible AFAIK. You always had to hack around to make it accessible. @kyguy might now if something changes in the way you should do it. |
Beta Was this translation helpful? Give feedback.
-
How were you accessing it in the past? Were you disabling the HTTP Basic auth and then SSL, port-forwarding the API? |
Beta Was this translation helpful? Give feedback.
-
Well in a previous version of the operator the API was accessible - and it was exposed without HTTPS and auth. A simple curl (no SSL, or basic auth) used to work both from inside the pod or using port forwarding. "In one of the next releases, you should be able to add/remove brokers and doing rebalancing by using the KafkaRebalance resource, so no CC REST API access needed anymore." - this is interesting, but I need to do this with the current brokers I have. Is there any way to access the API in 0.28? What auth is required? |
Beta Was this translation helpful? Give feedback.
-
Hey @talonx, we added HTTPS and auth and enabled it by default in Strimzi v0.26, but as @ppatierno mentioned you can disable it like this:
to have the same functionality as before Strimzi 0.26. For more information, check out the [1] https://strimzi.io/docs/operators/latest/configuring.html#ref-cruise-control-configuration-str |
Beta Was this translation helpful? Give feedback.
-
This worked - thanks @kyguy |
Beta Was this translation helpful? Give feedback.
Hey @talonx, we added HTTPS and auth and enabled it by default in Strimzi v0.26, but as @ppatierno mentioned you can disable it like this:
to have the same functionality as before Strimzi 0.26. For more information, check out the
Cruise Control REST API security
section here [1].[1] https://strimzi.io/docs/operators/latest/configuring.html#ref-cruise-control-configuration-str