Basic auth schema registry

Hi,

I am working on Azure Kubernetes Service. I have configured my schema registry as a pod. Now I want to configure basic authentication to my schema registry. When a user tries to access the schemas, first authentication(username and password) should be provided.

I have tried in 2 ways,

  1. Normal deployment to Kubernetes.
    BasicAuth From this link, I get to know that we can pass the env variables to schema registry. But here I am not getting how to pass authentication.realm

  2. When I apply the yaml I can see Kafka and schema registry pods are created and user authentication is also working. Is there a way to connect the schema registry with the existing Kafka cluster?