Injecting Strimzi KafkaUser tls-external as environment variables for kafka-ui #1698
Replies: 3 comments 9 replies
-
Here is how I have tested with no luck:
|
Beta Was this translation helpful? Give feedback.
-
We are trying to deploy a kafka-ui container on our k8s environment accessing the kafka-cluster deployed by the strimzi operator. Could you give me some hints or examples what I need to set to the env variables? Until now I tried connecting to the I don't know if I'm on the right way but I think it has something todo with my truststore. If you have any examples on a deployment.yml file that should work it would be much appreciated. |
Beta Was this translation helpful? Give feedback.
-
Seems like an old thread but here is how you can connect kafka UI with a kafkaUser using Strimizi with tls and simple authorization: Authorization as super user:
User Creation:
Kafka UI configuration:
Hope it helps someone else. cheers, Nelson Silva |
Beta Was this translation helpful? Give feedback.
-
So in this case, I have the following secret:
This is my kafka listener certificate, and as you can see, it has the required information to configure
kafka-ui
.This is simply a
cert-manager
generated certificate chain, which I use for my strimi Kafka listeners of typelaodbalancer
. This means this listener is of anexternal
type.Because this is an
external
listener, I need to create aKafkaUser
with authentication set totls-external
. This is because using authentication to solelytls
, createsKafkaUser
certificates signed by a different CA, which I do not want.Subsequently, this means I need to inject/mount the above
kafka-internal-listener-cert
Secret
into mykafka-ui
Pod
. I am doing this because I am using an internal Load Balancer.However, I cannot use this as an
existingSecret
because the data in theSecret
is formatted which makes them unsuitable for being stored as environment variables.I recently saw there was a PR closed related to adding
volumeMounts
,volumes
,initContainers
andenv
to the helm chart. However, these appear to not work for me. Anyone got a verified example of leveragingvolumeMounts
,volumes
,initContainers
andenv
in the helm chart?Beta Was this translation helpful? Give feedback.
All reactions