Closed murthy95 closed 1 year ago
Hi there,
I had the same problem with the confluent-schema-registry secret not being created correctly. In my case it was because the authentication for the KafkaUser was of type simple and the Kafka Cluster has this disabled by default.
You can check if you got the same error I had by doing this:
Get KafkaUsers:
kubectl get kafkausers -o wide -w -n <namespace>
Which will outoput something like that:
Now, if your user is not ready (there is not the True under the ready column), then you might just have encountered the same problem as I did.
Just check the status of the user deployment by typing:
kubectl get kafkausers <username> -o yaml
and look for the status attribute.
If you got an authorization problem like this:
then you will have to modify your kafka cluster deployment, by specifying to enable the simple authorization as below:
@Guberlo was able to fix this.
I see that here (https://github.com/lsst-sqre/strimzi-registry-operator/blob/main/strimziregistryoperator/handlers/createregistry.py#L120) we are reading the cluster name from the official strimzi labels to be put on the kafkauser resource.
Is there a specific reason for that? I wonder if we even have to call the k8s api for that. My suggestion is to enforce the user to use a proper label on the StrimziSchemaRegistry resource in the first place (like you have to on the strimzi provided cr's) and read it from the meta variable directly.
What do you think about this @jonathansick ?
Excellent idea @applike-ss, we'll implement that.
Separately, one of the goals that's emerged from our use at Rubin Observatory is supporting multiple Strimzi-deployed clusters (that are operating in separate namespaces). So annotating StrimziSchemaRegistry with the cluster name also helps us with that.
Also, thank you @Guberlo with pitching in on community support. 🍻 Really appreciate it.
Excellent idea @applike-ss, we'll implement that.
Separately, one of the goals that's emerged from our use at Rubin Observatory is supporting multiple Strimzi-deployed clusters (that are operating in separate namespaces). So annotating StrimziSchemaRegistry with the cluster name also helps us with that.
Also, thank you @Guberlo with pitching in on community support. beers Really appreciate it.
Having the current limit of only one schema registry and one cluster was actually bothering us as well. Great to hear that you want to fix that one as well!
Hi, I am running a local Minikube setup. Here are the steps I followed to run schema registry on k8s (Minikube).
minikube/setupkafka.sh
Minikube/deploysro.sh
Until this everything works fine.
I ran
Minikube/deployregistry.sh
and it fails citing confluent-shema-registry deployment not found. failing at this stepkubectl wait deployment confluent-schema-registry \ --for condition=Available=True --timeout=600s -n default
This is the error.Error from server (NotFound): deployments.apps "confluent-schema-registry" not found
When I checked for deployments and services in default namespace I didn't find confluent-schema-registery where as secrets is created. How to debug this issue ?
kubectl get svc
kubectl get secrets