Questions tagged [kube-scheduler]

44 questions
0
votes
0 answers

Distributing pods based on Node performance

Kubernetes version: 1.20 Cloud being used: Bare metal Installation method: Kubeadm Host OS: Redhat We have a 7 node cluster and have the following requirements: Deploy specific application pods to 2 nodes only Enure the 2 nodes have enough…
Ryebridge
  • 21
  • 1
0
votes
0 answers

How can I dynamically allocate resources to each pod?

I want to change the resource allocation of each pod dynamically using python client. I tried below code but it seems doesn't change. I searched really hard but I don't know how to... Or is there any other API that makes this change possible? from…
0
votes
0 answers

How often does kube-Scheduler refresh node resource data

I have a project to modify the scheduling policy, I have deployed a large number of pods at the same time, but it seems not scheduled as expected. I think kube-scheduler should cache the resource usage of nodes, so it needs to be deployed in two…
moluzhui
  • 1,003
  • 14
  • 34
0
votes
0 answers

How do I change the enabling policy of k8S custom scheduler

I have a project to enable another scheduler, This requires modifying the enabled policies and weights. After kubernetes 1.19, it can be set by KubeSchedulerConfiguration, although it is still in the beta stage. My project is kubernetes 1.18, how do…
moluzhui
  • 1,003
  • 14
  • 34
0
votes
1 answer

How to Enable RequestedToCapacityRatio feature for Kubernetes Cluster (version 1.18)

We have a kubernetes cluster (version 1.18.x) running on ubuntu 18.04, and we mainly use this cluster to run AI jobs. We want the cluster to schedule jobs based on bin packing policy (nvidia gpu resources have the highest weight), and I have done…
Wallace
  • 561
  • 2
  • 21
  • 54
0
votes
1 answer

how to use kubernetes scheduler.alpha.kubernetes.io/preferAvoidPods?

First all of, for some reasons, I'm using an unsupported and obsolete version of Kubernetes (1.12), and I can't upgrade. I'm trying to configure the scheduler to avoid running pods on some nodes by changing the node score when the scheduler try to…
APLU
  • 99
  • 1
  • 8
0
votes
1 answer

Pod affinity to nodes with the same label

I am in situation where number of nodes is reasonably large. Nodes are consumable and can be added and removed (if idle) at any time. All nodes would have labels label.category=A or label.category=B I want to schedule my pods onto nodes with the…
bioffe
  • 6,283
  • 3
  • 50
  • 65
0
votes
1 answer

How to access kube-scheduler on a kubernetes cluster?

I'm trying to figure out how to configure the kubernetes scheduler using a custom config but I'm having a bit of trouble understanding exactly how the scheduler is accessible. The scheduler runs as a pod under the kube-system namespace called…
Smaugy
  • 49
  • 1
  • 8
0
votes
1 answer

Kubernetes scheduling ignores pod count per worker node

We have a kubernetes cluster with three worker nodes, which was built manually, borrowing from the 'Kubernetes, the hard way' Tutorial. Everything on this cluster works as expected for one exception: The scheduler does not - or seems not to - honor…
geruetzel
  • 134
  • 6
0
votes
1 answer

Enable custom kubernetes scheduler for a namespace

I have a k8 job that brings up multiple pods. This job is used for load testing so all the pods need to come up at the same time. Job shouldn't be started until nodes are available for all pods to be scheduled. I came across kube-batch…
user2596613
  • 67
  • 1
  • 9
0
votes
1 answer

kubelet unable to get node status after kube-controller-manager and kube-scheduler restarted

My k8s 1.12.8 cluster (created via kops) has been running fine for 6+ months. Recently, something caused both kube-scheduler and kube-controller-manager on the master node to die and restart: SyncLoop (PLEG):…
0
votes
1 answer

Configure kube-scheduler to use only percentage of node's capacity

Is there a way to configure Kube-Scheduler to use only certain percentage of capacity on nodes? For example, I want scheduler to stop scheduling pods on nodes that have 70% of their memory and CPU resources utilized. Based on the scheduling…
0
votes
1 answer

kube-scheduler produces huge log files

We are on kube v1.13.10. We have ~500 nodes in cluster. Recently I've started to get alerts about DiskPressure from masters. After some checks we found out that the reason was kube-scheduler logs. They grew in size to ~20GB each, and there can be 5…
AlexS
  • 927
  • 4
  • 16
  • 29
0
votes
1 answer

Kubernetes pods are pending not active

If I run this: kubectl get pods -n kube-system I get this output: NAME READY STATUS RESTARTS AGE coredns-6fdd4f6856-6bl64 0/1 Pending 0 1h coredns-6fdd4f6856-xgrbm …
Alexander Mills
  • 90,741
  • 139
  • 482
  • 817
1 2
3