apiVersion: v1
kind: ConfigMap
metadata:
  name: topo-aware-scheduler-config
  namespace: kube-system
data:
  scheduler-config.yaml: |
      apiVersion: kubescheduler.config.k8s.io/v1
      kind: KubeSchedulerConfiguration
      leaderElection:
        leaderElect: false
      clientConnection:
        kubeconfig: "/etc/kubernetes/scheduler.conf"
      profiles:
        - schedulerName: topo-aware-scheduler
          plugins:
            multiPoint:
              enabled:
              - name: NodeResourceTopologyMatch
            reserve:
              disabled:
              - name: NodeResourceTopologyMatch
          # optional plugin configs
          pluginConfig:
          - name: NodeResourceTopologyMatch
            args:
              scoringStrategy:
                type: "LeastAllocated"
