Use Custom TLS when Configuring Kafka (w/ Strimzi crd) #9555
Replies: 3 comments 16 replies
-
As explained many times in the past. You have to configure your Ingress to TLS passthrough => and as such, it does not care about the certificate. So your custom certificate is never configured in the Ingress, it is configured in the Kafka cluster. |
Beta Was this translation helpful? Give feedback.
-
Thanks @scholzj for your reply. Here is what I have done:
I have also created my Kafka definition as follows:
But when I connect to broker (using command):
I end up with this error:
Is there something I am doing wrong? Thanks for your anticipated feedback. |
Beta Was this translation helpful? Give feedback.
-
IntroIf you are having some issues with Custom TLS (when using security.protocol: My Kafka will be using a Quick note on security protocols: PrerequisitesInstall OLM (Operator Lifestyle Manager) and the Strimzi Operator by running commands below.
Create Secret w/ Custom CertsYou need to have your certificate and private-key ready. Important Notes:
The next thing is to create a secret with the Cert and Key in the same namespace you intend to deploy the cluster.
Optional:
Create Kafka ClusterNow its time to create the Kafka Cluster. Our definition file is as follows:
You can also create topics and user as follows:
test-user.yaml
In other to test the Kafka communication, we can run the producer and consumer commands as shown: You can get the test-user password with the following command:
producer:
consumer
Optional:
consumer:
You should now be able to communicate with your cluster using Custom TLS. |
Beta Was this translation helpful? Give feedback.
-
#4406 (comment)
Hello @scholzj the links you have above dont seem to be working. Can you please provided updated link?
I am having the same issues, I want my Kafka CR definition with listener.type: ingress, to use my own tls cert.
Currently, when i build, I dont see the secretName in the ingress resource that is built from kafka CR. Below is a snippet of my Kafka CR definition:
Beta Was this translation helpful? Give feedback.
All reactions