ThinkChat2.0新版上线,更智能更精彩,支持会话、画图、视频、阅读、搜索等,送10W Token,即刻开启你的AI之旅 广告
`kube-scheduler`在启动的时候也可以指定一些参数,列表如下: | 参数 | 含义 | 默认值 | | --- | --- | --- | | \--adress | 监听地址 | "0.0.0.0" | | \--port | 调度器监听的端口 | 10251 | | \--algorithm-provider | 提供调度算法的对象 | "DefaultProvider" | | \--master | API Server 的 HTTP 地址 | / | | \--profiling | 是否开启 profiling,开启后可以在`host:port/debug/pprof`访问 profile 信息 | true | | \--scheduler-name | 调度器名称,用来唯一确定该调度器 | "default-shcheduler" | | \--kube-api-burst | 和 API Server 通信时的最大 burst 值 | 100 | | \--kube-api-qps | 和 API Server 通信时的 QPS 值 | 50 | | \--log\_dir | 日志保存的目录 | / | | \--policy-config-file | json 配置文件,用来指定调度器的 Predicates 和 Priorites 策略 | / | 关于自定义策略的 JSON 文件的格式示例如下: ~~~yaml { 'kind': 'Policy', 'apiVersion': 'v1', 'predicates': [ { 'name': 'PodFitsHostPorts' }, { 'name': 'PodFitsResources' }, { 'name': 'NoDiskConflict' }, { 'name': 'NoVolumeZoneConflict' }, { 'name': 'MatchNodeSelector' }, { 'name': 'HostName' }, ], 'priorities': [ { 'name': 'LeastRequestedPriority', 'weight': 1 }, { 'name': 'BalancedResourceAllocation', 'weight': 1 }, { 'name': 'ServiceSpreadingPriority', 'weight': 1 }, { 'name': 'EqualPriority', 'weight': 1 }, ], 'hardPodAffinitySymmetricWeight': 10, 'alwaysCheckAllPredicates': false, } ~~~