mirror of
https://github.com/cozystack/cozystack.git
synced 2026-11-30 04:06:34 +09:00
Every docker login, pull and push goes through nginx, core and registry, and each of them ran as a single pod: losing the node that hosted one stopped all registry traffic, however many database and Redis instances backed it. The vendored chart already scales them and the registry keeps its blobs in S3, so only the wrapper was missing the knobs. Placement is added only above one replica, so an install on the default renders the pod templates it had. It follows the platform's scheduling.globalAppTopologySpreadConstraints, like the other applications, so an operator sets the placement policy once for the whole cluster. Without one, a soft zone and node spread stands in: soft so that a cluster without zone labels, or with fewer nodes than replicas, still schedules every replica. The data tier follows the same policy through topologySpreadConstraints rather than affinity, which keeps the per-node anti-affinity CloudNativePG and the Redis operator apply by default: replacing the RedisFailover affinity, or moving CNPG's topologyKey to the zone, would drop it on a cluster without zone labels. Co-authored-by: Yan Bondarenko <202671653+yankawai@users.noreply.github.com> Assisted-by: LLM Signed-off-by: Mattia Eleuteri <mattia@hidora.io>