mirror of
https://github.com/openshift/openshift-docs.git
synced 2026-02-05 12:46:18 +01:00
57 lines
2.1 KiB
Plaintext
57 lines
2.1 KiB
Plaintext
// Module included in the following assemblies:
|
|
//
|
|
// * openshift_images/configuring-registry-operator.adoc
|
|
|
|
:_mod-docs-content-type: REFERENCE
|
|
[id="registry-operator-distribution-across-availability-zones_{context}"]
|
|
= Image Registry Operator distribution across availability zones
|
|
|
|
[role="_abstract"]
|
|
The default configuration of the Image Registry Operator spreads image registry pods across topology zones to prevent delayed recovery times in case of a complete zone failure where all pods are impacted. Reference the following YAML to understand the default parameter values that the Image Registry Operator uses when the Operator deploys with a zone-related topology constraint:
|
|
|
|
[source,yaml]
|
|
----
|
|
topologySpreadConstraints:
|
|
- labelSelector:
|
|
matchLabels:
|
|
docker-registry: default
|
|
maxSkew: 1
|
|
topologyKey: kubernetes.io/hostname
|
|
whenUnsatisfiable: DoNotSchedule
|
|
- labelSelector:
|
|
matchLabels:
|
|
docker-registry: default
|
|
maxSkew: 1
|
|
topologyKey: node-role.kubernetes.io/worker
|
|
whenUnsatisfiable: DoNotSchedule
|
|
- labelSelector:
|
|
matchLabels:
|
|
docker-registry: default
|
|
maxSkew: 1
|
|
topologyKey: topology.kubernetes.io/zone
|
|
whenUnsatisfiable: DoNotSchedule
|
|
----
|
|
|
|
ifndef::openshift-dedicated,openshift-rosa[]
|
|
Reference the following YAML to understand the default parameter value that the Image Registry Operator uses when the Operator deploys with a zone-related topology constraint, which applies to bare metal and vSphere instances:
|
|
|
|
[source,yaml]
|
|
----
|
|
topologySpreadConstraints:
|
|
- labelSelector:
|
|
matchLabels:
|
|
docker-registry: default
|
|
maxSkew: 1
|
|
topologyKey: kubernetes.io/hostname
|
|
whenUnsatisfiable: DoNotSchedule
|
|
- labelSelector:
|
|
matchLabels:
|
|
docker-registry: default
|
|
maxSkew: 1
|
|
topologyKey: node-role.kubernetes.io/worker
|
|
whenUnsatisfiable: DoNotSchedule
|
|
----
|
|
endif::openshift-dedicated,openshift-rosa[]
|
|
|
|
As a cluster administrator. you can override the default `topologySpreadConstraints` section values by configuring the `configs.imageregistry.operator.openshift.io/cluster` spec file.
|