-
Hey guys, I assume this is the best place to seek some help regarding properly using kafkabridge in minikube cluster. To give you the specs, I'm new to the Kafka and k8s world; and currently using Minikube for all testing purposes. I have used the Minikube tutorial from this page https://strimzi.io/quickstarts to get going, and it all works like a charm. However, at this stage, I want to expose the Kafka server to the host machine (the machine where Minikube is running as a container). For this, kafkabridge would be needed as explained here https://strimzi.io/blog/2019/07/19/http-bridge-intro; also because I want to communicate via HTTP protocol. While applying kafka-bridge.yaml, I got the following error message:
From what I can see, kafkabridge crd needs to be installed first. Chatgpt suggested me to install it using the following command:
This apparently installed crd, which I verified by running kubectl get crds command:
After updating my kafka_brdige.yaml to edit the apiVersion line to:
I'm still getting the following error msg:
At this stage, I don't know what's missing. I'm very close to setting up a working kafka for other services. I would appreciate any sort of help in this regard. Let me know if more info is needed to debug the scenario. Note: all kubectl commands were run inside kafka namespace. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Well, ChatGTP was wrong and right at the same time I guess. That is not the way how you install the CRD => the The error you are getting is because you are using an old version of the custom resource => this is because you copied it from a blog post from 2019 ;-). We have up to date examples on GitHub (https://github.com/strimzi/strimzi-kafka-operator/blob/main/examples/bridge/kafka-bridge.yaml) and in the docs. Or in the case of the Bridge, you can also just edit the YAML file and use |
Beta Was this translation helpful? Give feedback.
Well, ChatGTP was wrong and right at the same time I guess. That is not the way how you install the CRD => the
&crd=kafka-bridge
is completely made up. But it is not enough to install a single CRD. You have to install the whole operator, which is done by this commandkubectl apply -f 'https://strimzi.io/install/latest?namespace=kafka
. So it was lucky.The error you are getting is because you are using an old version of the custom resource => this is because you copied it from a blog post from 2019 ;-). We have up to date examples on GitHub (https://github.com/strimzi/strimzi-kafka-operator/blob/main/examples/bridge/kafka-bridge.yaml) and in the docs. Or in the case of the Bridge, you can …