[ENHANCE] Add support for strimzi's podsets
Is your feature request related to a problem? Please describe. When I have a KafkaConnect that has a secret managed by cert-manager and the secret is rotated, reloader is not able to rotate pods. This is because Strimzi migrated away some time ago from statefulsets and deployments to own PodSets
Describe the solution you'd like Implement support for watching and reloading strimzi podsets just like other resources (i.e. Argo Rollouts)
Describe alternatives you've considered Rotate credentials earlier and implement a cronjob that rotates pods periodically. Not elegant because ends up excess pod restarts. Frequency of pod restarts should be higher than frequency of secret regeneration.
Additional context Strimzi mentioned such feature is out of their scope: https://github.com/orgs/strimzi/discussions/10447 Would be great to have this gap covered.
Hi, I would really like it if Reloader can support reloading the Strimzi components like Kafka Connect this way. I often encounter this issue as well. I'll be watching this issue, and please let me know if you need some more details about what i think would be useful
+1 for support
+1, with a concrete shape in case it helps move this forward. Following @rasheedamir's note in strimzi/strimzi-kafka-operator#10447 about gauging interest: we run Strimzi-managed brokers that mount a Secret Strimzi does not track (an externally issued certificate), and today nothing rolls them when it rotates.
Why the existing mechanisms don't cover it:
- Strimzi rolls broker pods only on its own config and certificate hashes. As scholzj put it in #10447, it does not reload external Secrets or ConfigMaps.
- Strimzi's
StrimziPodSetcontroller does not roll pods when the pod template changes. So the usual Reloader action, patching an env var or annotation into the template, would do nothing there. - Reloader's supported kinds (Deployment, StatefulSet, DaemonSet, Job, CronJob, Rollout, and DeploymentConfig in v2) don't include
StrimziPodSet. The pod-annotation path doesn't act on pods whose owner isn't one of them (see also #1057, #428).
What Strimzi does support is a manual rolling update: annotate the StrimziPodSet with strimzi.io/manual-rolling-update=true, and the operator rolls its pods one by one, respecting its own ordering and readiness checks.
Proposed shape:
- Add
StrimziPodSet(core.strimzi.io/v1beta2) as a workload kind. - Watch it with the usual annotations (
reloader.stakater.com/auto,secret.reloader.stakater.com/reload, …), read from the podset's own metadata, and match against the Secrets and ConfigMaps its pod template references. - On a change, set
strimzi.io/manual-rolling-update: "true"on the podset instead of patching the template. Strimzi removes the annotation when the roll completes, so the action is idempotent. - Off by default behind a flag (for example
--enable-strimzipodset), like the Argo Rollouts support, so clusters without the CRD are unaffected.
This would let Strimzi users drop the manual (or scripted) annotate step after every certificate or credential rotation. I'm happy to test a branch against a Strimzi cluster.
This comment was drafted with the help of an AI assistant and reviewed by a human before posting.