SysbeeTech / kubedeploy

Kubedeploy
https://kubedeploy.app/
Apache License 2.0
5 stars 2 forks source link

Add podSpread #34

Open btoic opened 9 months ago

btoic commented 9 months ago

Similar to podAntiAffinity feature, create easier to configure topologySpreadConstraints via podSpread value option.

Example usage:

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