文档章节

kube-scheduler最佳配置

WaltonWang
 WaltonWang
发布于 2017/05/23 21:02
字数 624
阅读 130
收藏 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
粉丝 196
博文 100
码字总数 207940
作品 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
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
多节点部署Kubernetes dashboard UI详细流程

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

CHENYUFENG1991
02/04
0
0

没有更多内容

加载失败,请刷新页面

加载更多

《Maven官方文档》-Maven依赖机制简介

《Maven官方文档》-Maven依赖机制简介 原文地址 译者:Tyrian 依赖机制是Maven最为用户熟知的特性之一,同时也是Maven所擅长的领域之一。单个项目的依赖管理并不难, 但是当你面对包含数百个...

tantexian
16分钟前
1
0
基于 Docker 快速部署多需求 Spark 自动化测试环境

引言 在进行数据分析时,Spark 越来越广泛的被使用。在测试需求越来越多、测试用例数量越来越大的情况下,能够根据需求快速自动化部署 Spark 环境、快速完成所有测试越来越重要。 本文基于 ...

呐呐丶嘿
34分钟前
2
0
支付宝APP支付之查看支付宝商户ID

1、登录支付宝蚂蚁金服开放平台 2、查看账号详情,选择合作伙伴管理,账户管理,查看角色身份,此处的PID就是商户ID 3、点击秘钥管理,可查看绑定的相关应用及其APPID等信息

Code辉
37分钟前
2
0
崛起于Springboot2.X之通讯WebSocket(40)

技术简介:Springboot2.0.3+freemaker+websocket 1、添加pom依赖 <dependencies> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-bo......

木九天
45分钟前
1
0
Java常用四大线程池用法以及ThreadPoolExecutor详解

为什么用线程池? 1.创建/销毁线程伴随着系统开销,过于频繁的创建/销毁线程,会很大程度上影响处-理效率 2.线程并发数量过多,抢占系统资源从而导致阻塞 3.对线程进行一些简单的管理 在Java中...

孟飞阳
47分钟前
1
0

没有更多内容

加载失败,请刷新页面

加载更多

返回顶部
顶部