文档章节

kube-scheduler最佳配置

WaltonWang
 WaltonWang
发布于 2017/05/23 21:02
字数 624
阅读 115
收藏 1

version: kubernetes 1.6.2

##kube-scheduler Configuration

下面是我梳理的kube-scheduler的完成配置:

flag                default valuecomments
--address string0.0.0.0The IP address to serve on (set to 0.0.0.0 for all interfaces) (default "0.0.0.0")
--algorithm-provider stringDefaultProviderThe scheduling algorithm provider to use, one of: DefaultProvider
--failure-domains stringkubernetes.io/hostname,<br/> failure-domain.beta.kubernetes.io/zone,<br/> failure-domain.beta.kubernetes.io/regionIndicate the "all topologies" set for an empty topologyKey when it's used for PreferredDuringScheduling pod anti-affinity. (default "kubernetes.io/hostname,failure-domain.beta.kubernetes.io/zone,failure-domain.beta.kubernetes.io/region")
--feature-gates valueA set of key=value pairs that describe feature gates for alpha/experimental features. Options are: <br/> AllAlpha=true
--google-json-key stringThe Google Cloud Platform Service Account JSON Key to use for authentication.
--hard-pod-affinity-symmetric-weight int1RequiredDuringScheduling affinity is not symmetric, but there is an implicit PreferredDuringScheduling affinity rule corresponding to every RequiredDuringScheduling affinity rule. --hard-pod-affinity-symmetric-weight represents the weight of implicit PreferredDuringScheduling affinity rule. (default 1)
--kube-api-burst value100Burst to use while talking with kubernetes apiserver (default 100)
--kube-api-content-type stringapplication/vnd.kubernetes.protobufContent type of requests sent to apiserver. (default "application/vnd.kubernetes.protobuf")
--kube-api-qps value50QPS to use while talking with kubernetes apiserver (default 50)
--kubeconfig stringPath to kubeconfig file with authorization and master location information.
--leader-electtrueStart a leader election client and gain leadership before executing the main loop. Enable this when running replicated components for high availability. (default true)
--leader-elect-lease-duration duration15sThe duration that non-leader candidates will wait after observing a leadership renewal until attempting to acquire leadership of a led but unrenewed leader slot. This is effectively the maximum duration that a leader can be stopped before it is replaced by another candidate. This is only applicable if leader election is enabled. (default 15s)
--leader-elect-renew-deadline duration10sThe interval between attempts by the acting master to renew a leadership slot before it stops leading. This must be less than or equal to the lease duration. This is only applicable if leader election is enabled. (default 10s)
--leader-elect-retry-period duration2sThe duration the clients should wait between attempting acquisition and renewal of a leadership. This is only applicable if leader election is enabled. (default 2s)
--master stringThe address of the Kubernetes API server (overrides any value in kubeconfig)
--policy-config-file stringFile with scheduler policy configuration
--port value10251The port that the scheduler's http service runs on (default 10251)
--profilingtrueEnable profiling via web interface host:port/debug/pprof/ (default true)
--scheduler-name stringdefault-schedulerName of the scheduler, used to select which pods will be processed by this scheduler, based on pod's annotation with key 'scheduler.alpha.kubernetes.io/name' (default "default-scheduler")

kube-scheduler Configuration Best Practices

下面是我梳理的,个人认为必须关注的配置:

flag                default valuecomments
--address string0.0.0.0The IP address to serve on (set to 0.0.0.0 for all interfaces) (default "0.0.0.0")
--kubeconfig stringPath to kubeconfig file with authorization and master location information.
--master stringThe address of the Kubernetes API server (overrides any value in kubeconfig)
--policy-config-file stringFile with scheduler policy configuration
--port value10251The port that the scheduler's http service runs on (default 10251)
--profilingtrueEnable profiling via web interface host:port/debug/pprof/ (default true)

对比一下其他组件,你会感慨,kube-scheduler的配置真是少啊!确实,也难怪scheduler是最简单的组件。

更多关于kubernetes的深入文章,请看我csdn或者oschina的博客主页。

© 著作权归作者所有

共有 人打赏支持
WaltonWang
粉丝 174
博文 95
码字总数 197016
作品 0
深圳
程序员
kubernetes 1.8 高可用安装(三)

3、master 组件安装(etcd/api-server/controller/scheduler) 3.1 etcd集群安装 确定你要安装的master机器, 上面安装rpm包,配置kubelet 注意: 所有的image,我都已经放到docker hub仓库,...

战狐
2017/10/31
0
0
Kubernetes集群部署2

1.配置并启用 etcd 集群 A. 配置启动项并将启动项分发至其他节点 # vim /usr/lib/systemd/system/etcd.service[Unit]Description=etcdAfter=network.targetAfter=network-online.targetWants......

心远何方
06/27
0
0
使用二进制安装包部署kubernetes v1.9.8集群的参考手册

一、使用二进制方式部署k8s的Master节点 more /usr/lib/systemd/system/kube-apiserver.service more /usr/lib/systemd/system/kube-controller-manager.service more /usr/lib/systemd/sys......

watermelonbig
05/24
0
0
多节点部署Kubernetes dashboard UI详细流程

Kubernetes要做的一个最重要的工作就是实现Docker容器的集群,并且一般都是在不同的物理机器上。我们通过使用命令行来操作Kubernetes,但是如果有一个UI界面来可视化操作,岂不是更方便。本篇...

CHENYUFENG1991
02/04
0
0
Kubernetes1.6安装指南 (二进制文件方式)

Kubernetes的总体架构 部署环境说明 主机名 IP 操作系统 角色 node201 10.0.0.201 centos 7.3 64位 Master node202 10.0.0.202 centos 7.3 64位 Node node203 10.0.0.203 centos 7.3 64位 No......

chenhaifeng2016
2017/05/07
0
0

没有更多内容

加载失败,请刷新页面

加载更多

如何通过 J2Cache 实现分布式 session 存储

做 Java Web 开发的人多数都会需要使用到 session (会话),我们使用 session 来保存一些需要在两个不同的请求之间共享数据。一般 Java 的 Web 容器像 Tomcat、Resin、Jetty 等等,它们会在...

红薯
今天
1
0
C++ std::thread

C++11提供了std::thread类来表示一个多线程对象。 1,首先介绍一下std::this_thread命名空间: (1)std::this_thread::get_id():返回当前线程id (2)std::this_thread::yield():用户接口...

yepanl
今天
2
0
Nignx缓存文件与动态文件自动均衡的配置

下面这段nginx的配置脚本的作用是,自动判断是否存在缓存文件,如果有优先输出缓存文件,不经过php,如果没有,则回到php去处理,同时生成缓存文件。 PHP框架是ThinkPHP,最后一个rewrite有关...

swingcoder
今天
1
0
20180920 usermod命令与用户密码管理

命令 usermod usermod 命令的选项和 useradd 差不多。 一个用户可以属于多个组,但是gid只有一个;除了gid,其他的组(groups)叫做扩展组。 usermod -u 1010 username # 更改用户idusermod ...

野雪球
今天
1
0
Java网络编程基础

1. 简单了解网络通信协议TCP/IP网络模型相关名词 应用层(HTTP,FTP,DNS等) 传输层(TCP,UDP) 网络层(IP,ICMP等) 链路层(驱动程序,接口等) 链路层:用于定义物理传输通道,通常是对...

江左煤郎
今天
1
0

没有更多内容

加载失败,请刷新页面

加载更多

返回顶部
顶部