|NO.Z.00200|——————————|CloudNative|——|KuberNetes&高级调度.V03|——|污点容忍.v01|Taint&Toleration概述|
一、Taint&Toleration概述
### --- 引入Taint&TolerationToleration必然性
~~~ 在不同的机房
~~~ 在不同的城市
~~~ 有着不一样配置:GPU服务器(贵)、纯固态硬盘的服务器(贵)
~~~ # k8s是全自动的去调度,
~~~ 中间是不需要人去控制的;为了防止pod不让pod部署在GPU或者纯硬盘服务上,
~~~ 只需要让某一类的Pod部署在GPU或者纯固态硬盘服务器上,我们该怎么控制呢?
### --- 通过打标签的方式去控制
~~~ NodeSelect:
~~~ Gpu-server:true、
~~~ Ssd-server:true
~~~ Normal-server:true
~~~ 可以为每个服务器打上NodeSelect;这种方式是非常不建议的,
~~~ 需要把每个资源都写入一个NodeSelect,且若是忘记写入这个参数的话,
~~~ 他有可能会飘到GPU服务器或者纯固态硬盘服务器上。
~~~ 所以K8S就引入了一个理念,污点和容忍的理念。
### --- 引入污点和容忍的理念:
~~~ Taint在一类服务器上打上污点,让不能容忍这个污点的Pod不能部署在打了污点的服务器上。
~~~ Master节点不应该部署系统Pod之外的任何Pod。
~~~ 每个节点可以打很多个污点
Walter Savage Landor:strove with none,for none was worth my strife.Nature I loved and, next to Nature, Art:I warm'd both hands before the fire of life.It sinks, and I am ready to depart
——W.S.Landor
浙公网安备 33010602011771号