Skip to content

Instantly share code, notes, and snippets.

@trevorbox
Created August 22, 2022 20:42
Show Gist options
  • Save trevorbox/58931122b94c8a8d434f97b4e35a99fd to your computer and use it in GitHub Desktop.
Save trevorbox/58931122b94c8a8d434f97b4e35a99fd to your computer and use it in GitHub Desktop.
topology spread constraint
topologySpreadConstraints:
- maxSkew: 1
topologyKey: node
whenUnsatisfiable: DoNotSchedule
labelSelector:
matchExpressions:
- key: app
operator: In
values:
- db2ucluster-roarprds-primary
- db2ucluster-roarprds-standby
- db2ucluster-roarprds-aux
- key: type
operator: In
values:
- engine
- maxSkew: 1
topologyKey: zone
whenUnsatisfiable: DoNotSchedule
labelSelector:
matchExpressions:
- key: app
operator: In
values:
- db2ucluster-roarprds-primary
- db2ucluster-roarprds-standby
- db2ucluster-roarprds-aux
- key: type
operator: In
values:
- engine
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment