Files
cozystack/api
Mattia EleuteriandYan Bondarenko 7cc27e3a56 feat(harbor): expose replicas and zone spread for the request path
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>
2026-11-23 12:06:04 +03:00
..