Auto-restart kafka connect pod if ConfigMap or Secrets (external configuration) have changed. #10447
Replies: 2 comments 5 replies
-
Strimzi does not support sidecars nor any reloading of the external secrets or config maps. Sorry. |
Beta Was this translation helpful? Give feedback.
-
Hi @ness-safinapharas @scholzj I'm currently facing a similar issue with a RabbitMQ Kafka connector. In my case, certificates are managed by cert-manager, and they are mounted into the KafkaConnect pod via Secrets. When cert-manager renews the certificates, the Secret is updated, but the KafkaConnect pod doesn't automatically restart or reload the new certificate. You mentioned a similar setup — i juste want to know how you finally handled the automatic restart of the KafkaConnect pod after certificate renewal ? Did you use a sidecar, an operator, or some custom logic to trigger the restart when the mounted cert changes ? Any details about your solution would be very helpful Thanks a lot |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
We use the Strimzi Operator to build a Kafka Cluster and Kafka Connect as a CRD. We are utilizing a Camel HTTP sink connector. We have a certificate key that needs to be passed to the sink connector via JVM arguments. The certificates are stored in Vault and mounted to a specific path, and they are rotated every 7 days. We are using a Kubernetes Operator for ConfigMap and Secrets, which allows the certificates to refresh at the mounted path. However, the pod using the certificates is not restarting automatically. Is there a way to restart a KafkaConnect (CRD) pod when Secrets or ConfigMap are changed?
We tried a reloader library, but this kind of library works with Deployments. Here we are using Custom Resources for KafkaConnect. Also is there any way to use the side car in KafkaConnect CRD resource? This is a very urgent issue. Can someone help?
Beta Was this translation helpful? Give feedback.
All reactions