Questions tagged [kube-scheduler]

44 questions
2
votes
1 answer

Kubernetes: kube-scheduler is not correctly scoring nodes for pod assignment

I am running Kubernetes with Rancher, and I am seeing weird behavior with the kube-scheduler. After adding a third node, I expect to see pods start to get scheduled & assigned to it. However, the kube-scheduler scores this new third node node3 with…
KZcoding
  • 1,417
  • 4
  • 16
  • 26
2
votes
3 answers

CrashLoopBackOff for kube-scheduler Due to Missing Service Token

I have a problem with my Kubernetes cluster where my kube-scheduler pod is stuck in the 'CrashLoopBackOff' state and I am unable to rectify it. the logs are complaining of a missing service token: kubectl logs kube-scheduler-master -n…
Harry
  • 199
  • 1
  • 2
  • 9
1
vote
2 answers

kubernetes (AKS) scheduling all pods to same node

I have set of pods belonging to different deployments. All are configured to run as single replicas. Further, i have 2 nodes in my cluster. Now, when i try to schedule my pods, all pods get deployed to same node. its very rare that i see my pods are…
Manish Bansal
  • 2,400
  • 2
  • 21
  • 37
1
vote
0 answers

Run Kubernetes custom scheduler periodically

I've customized the kubernetes' scheduler using Scheduling framework described here which works fine every time a new pod is going to be created. What i want additionally is to run the scheduler periodically on every pod. The purpose is to offload…
Faramarz Qoshchi
  • 1,292
  • 1
  • 13
  • 24
1
vote
0 answers

Utilizing kubernetes nodes with descheduler

So here's a sample scenario I'm trying to utilize in terms of K8s node resources. Let's say we have 3 (worker) nodes - same type - with these resource requests allocated: N1: 70% N2: 60% N3: 50% I'd like to ideally rebalance the nodes (pods on the…
Mahyar
  • 1,011
  • 2
  • 17
  • 37
1
vote
1 answer

Why spec.schedulerName does not work under daemonset?

Following this K8s page here on how to use multiple schedulers,and this, all I could see is that the schedulerName is taking place under the pod's spec , though I don't understand if this is explained particularly to single pods (as Pod is the…
shermakh
  • 117
  • 1
  • 7
1
vote
1 answer

How to enable/disable a kubernetes scheduler plugin?

I want to disable a Kubernetes scheduler plugin. The kubernetes docs says to use a configuration file like: apiVersion: kubescheduler.config.k8s.io/v1beta1 kind: KubeSchedulerConfiguration profiles: - plugins: score: disabled: …
HissPirat
  • 41
  • 4
1
vote
0 answers

How to display scheduling policy in kube-scheduler

My question is how to display the current predicates and priority policies used by kube-scheduler. Note that I didn't change or overwrite them, so am wondering how can I display them, or anyone can tell me what is the default policy used in…
Ishak Hari
  • 148
  • 15
1
vote
1 answer

my machine have enough memory, but the kubernetes can not schedule the pod and indicate that Insufficient memory

I have a 1.16.2 version cluster of kubernetes. When I deploy all the service in the cluster with the replicas is 1, it works fine. Then i scale all the service's replicas to 2 And check out. found that some service are running Normal but But some…
Esc
  • 521
  • 13
  • 30
1
vote
2 answers

Q: Configuration custom scheduler plugin in Kubernetes

I'm trying to add my custom scheduler with scheduler plugin in Kubernetes. Due to no detailed example in Kubernetes document (scheduling-framework, 20180409-scheduling-framework) So I simply made it for testing. But, I got error: unable to recognize…
yotion
  • 13
  • 1
  • 3
1
vote
1 answer

How to know if a container is running on a leader kube-scheduler pod of a HA cluster?

I have a HA cluster(say 3 masters with 1 kubes-scheduler pod on each master). There is a container running in each kube-scheduler pod. Inside this container, there two problems need to be solved here: How to know which kube-scheduler pod the…
JoyceLee
  • 85
  • 3
  • 11
1
vote
0 answers

How to taint k8s nodes based on a custom condition

We are using CNI plugins bridge/host-local on nodes with limited pool of IPs which can be exhaused before the cpu/mem are exhaused. In such case, how can I ensure the pods are not scheduled to the pods where IPs are exhaused but the resources are…
0
votes
0 answers

Soft Scheduling placing pod on same Node

I have a requirement to schedule pods on a different Node, however if pod replicas goes on to increase more then the number of nodes, it should try to utilizes existing resources. For the above Requirement I chose to use (Soft…
Ruchir Bharadwaj
  • 1,132
  • 4
  • 15
  • 31
0
votes
0 answers

scheduler cannot start if apiserver has no `--requestheader-client-ca-file`

I found intresting thing, when i run kube-apiserver without --requestheader-client-ca-file args, then kube-scheduler will failed to start and the error message is kube-system/extension-apiserver-authentication failed with : missing content for CA…
0
votes
1 answer

errors in kubernetes cluster setup (scheduler and controller in continuous restarts every 10 mins)

I installed kubernetes (v26) cluster on ubuntu 22.04. I am able to launch nginx on master node and run curl against it, but hello-world-deployment doesn't work. It is pending forever it appears the apiserver, controller-manager and scheduler have…