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?