Similar to how @flamarion added support for the security context in this PR, we need to implement the same for topologySpreadConstraints
Sample block
topologySpreadConstraints:
- maxSkew: 1
topologyKey: kubernetes.io/hostname
whenUnsatisfiable: ScheduleAnyway
labelSelector:
matchLabels:
control-plane: controller-manager
- maxSkew: 1
topologyKey: topology.kubernetes.io/zone
whenUnsatisfiable: ScheduleAnyway
labelSelector:
matchLabels:
control-plane: controller-manager
Similar to how @flamarion added support for the security context in this PR, we need to implement the same for topologySpreadConstraints
Sample block