podSpread:
type: soft # or hard (default "" which disables it)
skew: 1 # optional (default 1)
minDomains: 2 # optional (default none)
key: kubernetes.io/hostname # optional (default hostname)
This should define a simple pod topology constraints based on chart labels and default values from above.
type soft should map to whenUnsatisfiable: ScheduleAnyway while hard should map to whenUnsatisfiable: DoNotSchedule
At the end minimal configuration can then look like:
podSpread:
type: soft
If podToplologyConstraint values are defined they should override any podSpread options
Similar to podAntiAffinity feature, create easier to configure topologySpreadConstraints via podSpread value option.
Example usage:
This should define a simple pod topology constraints based on chart labels and default values from above. type soft should map to
whenUnsatisfiable: ScheduleAnyway
while hard should map towhenUnsatisfiable: DoNotSchedule
At the end minimal configuration can then look like:
If podToplologyConstraint values are defined they should override any podSpread options