Affinity Configuration
Affinity Configuration Properties describes the properties for configuring the External Diameter Gateway affinity properties.
Property | Default | Description |
---|---|---|
gateway.affinity.podAntiAffinity.preferredDuringSchedulingIgnoredDuringExecution | The scheduler tries to find a node that meets the rule. If a matching node is not available, the scheduler schedules the Pod. | |
gateway.affinity.podAntiAffinity.preferredDuringSchedulingIgnoredDuringExecution.podAffinityTerm.labelSelector.matchExpressions.operator | In | Match the pod according to set based operator match expressions. |
gateway.affinity.podAntiAffinity.preferredDuringSchedulingIgnoredDuringExecution.podAffinityTerm.labelSelector.matchExpressions.values |
|
Match the pod according to set based value match expressions. |
gateway.affinity.podAntiAffinity.preferredDuringSchedulingIgnoredDuringExecution.podAffinityTerm.labelSelector.matchLabels.app | diameter-gateway | Match the pod according to the label. |
gateway.affinity.podAntiAffinity.preferredDuringSchedulingIgnoredDuringExecution.podAffinityTerm.labelSelector.matchLabels.app.kubernetes.io/instance | Match the pod according to the unique name identifying the instance of an application. | |
gateway.affinity.podAntiAffinity.preferredDuringSchedulingIgnoredDuringExecution.podAffinityTerm.topologyKey | "kubernetes.io/hostname" | Match the pod according to the key for the node label used to denote the domain. |
The following Helm values file excerpt shows the configuration default values (where defaults exist) for these properties:
gateway:
affinity:
podAntiAffinity:
preferredDuringSchedulingIgnoredDuringExecution:
- weight: 100
podAffinityTerm:
labelSelector:
matchLabels:
app: diameter-gateway
app.kubernetes.io/instance: <instance>
topologyKey: "kubernetes.io/hostname"
- weight: 100
podAffinityTerm:
labelSelector:
matchExpressions:
- key: mtx-type
operator: In
values:
- proc
- publ
- ckpt
- tralb-proc
- tralb-publ
- trart
- tradr
- network-enabler
topologyKey: "kubernetes.io/hostname"