0

I have a Kubernetes with two master nodes in the master nodegroup. The problem is 1 node has 73-75% pod allocation while the other node only has 23-25% pod allocation. How do I balance the pods between the two master nodes? I have helm descheduler installed and the default config does not help with this. I tried kube-scheduler with the below config but it fails with timeout unable to get a lock on the default scheduler with kube-scheduler --config kubernetes/kube-scheduler.yaml.

apiVersion: kubescheduler.config.k8s.io/v1beta3
kind: KubeSchedulerConfiguration
clientConnection:
  kubeconfig: "/.kube/config"
profiles:
  - schedulerName: default-scheduler
  - schedulerName: resources-balanced-allocation
    plugins:
      score:
        enabled:
          - name: NodeResourcesBalancedAllocation
            weight: 1
Omi Harjani
  • 101
  • 1

0 Answers0