Skip to content

Instantly share code, notes, and snippets.

@epk
Created June 1, 2023 08:28
Show Gist options
  • Save epk/3aa0dc8088cbb71fbc98c943f43c5c6a to your computer and use it in GitHub Desktop.
Save epk/3aa0dc8088cbb71fbc98c943f43c5c6a to your computer and use it in GitHub Desktop.
apiVersion: kubescheduler.config.k8s.io/v1beta3
kind: KubeSchedulerConfiguration
profiles:
- schedulerName: default-scheduler
pluginConfig:
- name: PodTopologySpread
args:
defaultConstraints:
- maxSkew: 3
topologyKey: "kubernetes.io/hostname"
whenUnsatisfiable: ScheduleAnyway
- maxSkew: 5
topologyKey: "topology.kubernetes.io/zone"
whenUnsatisfiable: ScheduleAnyway
- maxSkew: 5
matchLabelKeys:
- app
- k8s-app
whenUnsatisfiable: ScheduleAnyway
defaultingType: List
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment