mirror of
https://github.com/cozystack/cozystack.git
synced 2026-11-30 04:06:34 +09:00
linstor-affinity-controller and the linstor-scheduler extender read their LINSTOR API client certificate from secretKeyRef env vars, which kubelet resolves only when the container starts. cert-manager renews these 90-day certificates every 60 days, but neither workload is restarted on rotation, so a pod that lives longer than the certificate keeps presenting the expired one. The controller then refuses every new TLS handshake and the Go client reports a bare EOF. For the affinity controller this means PV node affinities stop following replica moves; for the scheduler, once a pod with an expired certificate holds the leader lease, pods with LINSTOR volumes are no longer placed next to their replicas. Add the Reloader auto annotation to linstor-affinity-controller through the LinstorCluster patches, as already done for the controller and the CSI workloads, and annotate the linstor-scheduler Deployment with the client secret it consumes. The scheduler annotation goes on the Deployment rather than podAnnotations, which the admission Deployment shares and would roll for a secret it does not use. Assisted-by: LLM Signed-off-by: Mattia Eleuteri <mattia@hidora.io>