Configuring multi-zone support
You configure multi-zone support by setting the nodeAffinity
parameter.
About this task
In a multi-zone environment, you might want to ensure that all the pods of an Operational Decision Manager service are deployed on nodes in a specific zone. This way, you can organize and optimize access to the underlying resources, like storage and database, by region. For more information about the benefits of Kubernetes zones, see Running in multiple zones.
Procedure
For example, to deploy on the eu-west-3b
zone:
odm_configuration:
customization:
nodeAffinity:
- key: topology.kubernetes.io/zone
operator: In
values:
- eu-west-3b
All the pods will be scheduled to run on nodes located in the eu-west-3b
zone.
You can also configure node affinity at the service level.
For example, to deploy all the pods into the eu-west-3b
zone, except the
Decision Center pods that you want to deploy to the eu-west-3c
zone, use the
following configuration:
decisionCenter:
nodeAffinity:
- key: topology.kubernetes.io/zone
operator: In
values:
- eu-west-3c
customization:
nodeAffinity:
- key: topology.kubernetes.io/zone
operator: In
values:
- eu-west-3b