How often does kube-Scheduler refresh node resource data

11/25/2021

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 times.

Pod yaml is as follows, I run multiple pods through a shell loop implementation

apiVersion: v1
kind: Pod
metadata:
  name: ${POD_NAME}
  labels:
    name: multischeduler-example
spec:
  schedulerName: my-scheduler
  containers:
  - name: pod-with-second-annotation-container
    image: ibmcom/pause:3.1
    resources:
      requests:
        memory: "1Gi"
        cpu: "1"
      limits:
        memory: "2Gi"
        cpu: "2"

I want to know the interval of refreshing the cache of kube-scheduler for deployment

I really appreciate any help with this

-- moluzhui
kube-scheduler
kubernetes

0 Answers