1. 程式人生 > >【kubernetes/k8s概念】kube-scheduler啟動引數

【kubernetes/k8s概念】kube-scheduler啟動引數

kubernetes 1.12.1版本

Desc

      The Kubernetes scheduler is a policy-rich, topology-aware, workload-specific function that significantly impacts availability, performance, and capacity. The scheduler needs to take into account individual and collective resource requirements, quality of service requirements, hardware/software/policy constraints, affinity and anti-affinity specifications, data locality, inter-workload interference, deadlines, and so on. Workload-specific requirements will be exposed through the API as necessary.

 

      kube-scheduler通過排程演算法為待排程Pod列表上的每一個Pod從Node列表中選擇一個最合適的Node。

 

       kube-scheduler當前提供的預設排程流程分為兩步

  • 預選排程過程:遍歷所有目標Node,篩選出符合要求的候選節點
  • 確定最優節點:在第一步的基礎上,採用優選策略計算出每個候選節點的分數,分數最高者勝出

 

/opt/k8s/bin/kube-scheduler --address=0.0.0.0 --master=http://127.0.0.1:8080 --leader-elect=true --v=2

 

kube-scheduler啟動引數詳解

Usage:
  kube-scheduler [flags]

--address string 監聽主機IP地址,0.0.0.0監聽主機所有主機介面
--algorithm-provider string 設定排程演算法,ClusterAutoscalerProvider | DefaultProvider,預設為DefaultProvider
--alsologtostderr 設定true則日誌輸出到stderr,也輸出到日誌檔案
--config string 配置檔案的路徑
--kube-api-burst int32 傳送到kube-apiserver每秒請求量 (default 100)
--kube-api-content-type string