0

EKS v1.23

I would like to add Cluster level default constrains (scheduling profile):

apiVersion: kubescheduler.config.k8s.io/v1beta3
kind: KubeSchedulerConfiguration

profiles:
  - schedulerName: default-scheduler
    pluginConfig:
      - name: PodTopologySpread
        args:
          defaultConstraints:
            - maxSkew: 1
              topologyKey: topology.kubernetes.io/zone
              whenUnsatisfiable: ScheduleAnyway
          defaultingType: List

From k8s docs looks like need to run kube-scheduler --config <filename>.

I guess the command should be ran from the master node.

How can I access the master node to execute commands like this? Will it necessarily be familiar with kube-scheduler command?

jrz
  • 1,213
  • 4
  • 20
  • 54
  • This seems like the same [question](https://stackoverflow.com/questions/75545205/k8s-cluster-level-topology-spread) already posted, I have already answered [here](https://stackoverflow.com/a/75545747/3537880) – Sibtain Feb 26 '23 at 17:37

0 Answers0