当前位置: 首页 > news >正文

企业电话号码查询网站打开百度网页版

企业电话号码查询网站,打开百度网页版,招聘网站的建设,网站原创文章在哪里找1 调度过程 调度的本来含义是指决定某个任务交给某人来做的过程,kubernetes中的调度是指决定Pod在哪个Node上运行。 k8s的调度分为2个过程: 预选:去掉不满足条件的节点优选:对剩下符合条件的节点按照一些策略进行排序&#xff…

1 调度过程

调度的本来含义是指决定某个任务交给某人来做的过程,kubernetes中的调度是指决定Pod在哪个Node上运行。

k8s的调度分为2个过程:

  • 预选:去掉不满足条件的节点
  • 优选:对剩下符合条件的节点按照一些策略进行排序,选择最优的节点运行Pod

2 亲和性

亲和性是指Pod调度时更倾向于调度到满足某些条件的节点。

亲和性按照对象不同分为节点亲和性和Pod亲和性:

  • 节点亲和性:Pod更倾向于调度到某类节点上运行
  • Pod亲和性:Pod更倾向于调度到跟某类Pod运行到同一个节点

亲和性按照满足条件的程度又分为软亲和性和硬亲和性:

  • 软亲和性:如果有满足条件的节点,则在这些节点上运行如果没有,也可以调度到不满足条件的节点上运行
  • 硬亲和性:必须调度到满足条件的节点上运行

亲和性的配置位于Pod.spec.affinity,节点亲和性位于Pod.spec.affinity.nodeAffinity,pod亲和性位于Pod.spec.affinity.podAffinity

3 污点和容忍度

3.1 污点和容忍度的含义

节点亲和性是指Pod必须或者可以被调度到带有某些标签的节点,是一种节点吸引Pod的能力。而污点则是节点排斥Pod的能力。

污点:节点拥有的属性,可以给节点打上污点,当Pod调度时就不会被调度到带有污点的节点。

容忍:创建Pod时指定的容忍度,当Pod调度时可以将Pod调度到带有这些污点的节点,当然也可以不调度到带有这些污点的节点。

污点由三部分组成:key=value:effect,其中value可以为空,effect描述污点的作用:

  • NoSchedule:k8s不会将Pod调度到有该污点的节点
  • PreferNoSchedule:k8s尽量避免将Pod调度到有该污点的节点(当节点资源不足时,也可以被调度)
  • NoExecute:k8s不会将Pod调度到有该污点的节点,同时会将节点上已经存在的Pod驱逐
3.2 如何设置

污点的设置:

# 设置污点
kubectl taint nodes node-name key=value:effect# 查看污点
kubectl describe pod pod-name# 删除污点
kubectl taint nodes node-name key:effect-

容忍度的设置:

Pod.spec.tolerations

tolerations:
- key: "key1"operator: "Equal"value: "value1"effect: "NoSchedule"tolerationSeconds: 3600
- key: "key2"operator: "Exists"effect: "NoSchedule"

注意:

  • key、value、effect需要与节点上设置的污点一致
  • tolerationSeconds表示当污点设置为NoExecute时,Pod被驱逐前可以继续保留运行的时间

4 固定节点调度

在某些场景下,可能需要将Pod调度到某些固定的节点上:

  • 节点托管:用户将服务器托管给云平台,这些服务器只能用户自己使用,云平台给节点打上标签,用户在提交yaml时在其中配置好节点选择标签
  • 集群分区:对单个集群分区,分别打上标签

因此,k8s支持两种指定节点的方式:

Pod.spec.nodeName:指定节点名称,Pod就会只运行在该节点上。

Pod.spec.nodeSelector:指定节点带有的标签,Pod就只会运行在带有这些标签的节点上。

5 节点驱逐

当需要对节点进行维护时,需要让k8s不将Pod调度到该节点,k8s提供三种驱逐节点的操作:

  • cordon
  • drain
  • delete
5.1 cordon

kubectl cordon NodeName

将节点设置为SchedulingDisabled,后续新创建的Pod不会再调度到该节点,原来跑在上面的Pod仍可以对外提供服务。可以使用uncordon恢复调度。

5.2 drain

kubectl drain NodeName

将节点设置为SchedulingDisabled,后续新创建的Pod不会再调度到该节点,并且,原来跑在上面的Pod会被优雅终止。可以使用uncordon恢复调度。

5.3 delete

kubectl delete node NodeName

驱逐节点上的Pod,在其他节点上重建,然后将该节点从集群中删除。如果需要重新加入集群,需要将kubelet进程重启。


文章转载自:
http://dinncoshogun.ssfq.cn
http://dinncoobjurgate.ssfq.cn
http://dinncokilostere.ssfq.cn
http://dinncocoprology.ssfq.cn
http://dinncospicily.ssfq.cn
http://dinncomegilp.ssfq.cn
http://dinncoprotuberate.ssfq.cn
http://dinncosilbador.ssfq.cn
http://dinncohomothallic.ssfq.cn
http://dinncodisplay.ssfq.cn
http://dinncopeonage.ssfq.cn
http://dinncofrumety.ssfq.cn
http://dinncolaceless.ssfq.cn
http://dinncoshockheaded.ssfq.cn
http://dinncodreep.ssfq.cn
http://dinncohunnish.ssfq.cn
http://dinncocyrillic.ssfq.cn
http://dinncoshocker.ssfq.cn
http://dinncotranshydrogenase.ssfq.cn
http://dinncoidiomorphic.ssfq.cn
http://dinncotrijugous.ssfq.cn
http://dinncoaraway.ssfq.cn
http://dinncokithe.ssfq.cn
http://dinncomelliferous.ssfq.cn
http://dinncoregicidal.ssfq.cn
http://dinncoflyman.ssfq.cn
http://dinncoducktail.ssfq.cn
http://dinncosnurfing.ssfq.cn
http://dinncogonocyte.ssfq.cn
http://dinncovulpicide.ssfq.cn
http://dinncoenlargement.ssfq.cn
http://dinncouncondescending.ssfq.cn
http://dinncoteleocracy.ssfq.cn
http://dinncotransnormal.ssfq.cn
http://dinncopusillanimity.ssfq.cn
http://dinncothallious.ssfq.cn
http://dinncoradioimmunoassay.ssfq.cn
http://dinncovividness.ssfq.cn
http://dinncofatiguesome.ssfq.cn
http://dinncoethylation.ssfq.cn
http://dinncogardenia.ssfq.cn
http://dinncoundunged.ssfq.cn
http://dinncodisappearance.ssfq.cn
http://dinncodebouchure.ssfq.cn
http://dinncodisubstituted.ssfq.cn
http://dinncoscapula.ssfq.cn
http://dinncononaqueous.ssfq.cn
http://dinncoburglar.ssfq.cn
http://dinncovizagapatam.ssfq.cn
http://dinncopussycat.ssfq.cn
http://dinncodungaree.ssfq.cn
http://dinncofastidious.ssfq.cn
http://dinncovolucrary.ssfq.cn
http://dinncodoxycycline.ssfq.cn
http://dinncosinography.ssfq.cn
http://dinncobronchi.ssfq.cn
http://dinncolollardism.ssfq.cn
http://dinncodeduct.ssfq.cn
http://dinnconathaniel.ssfq.cn
http://dinncoabandon.ssfq.cn
http://dinncosports.ssfq.cn
http://dinncogombeen.ssfq.cn
http://dinncotaw.ssfq.cn
http://dinncodihydrotestosterone.ssfq.cn
http://dinncoras.ssfq.cn
http://dinncosemicirque.ssfq.cn
http://dinncoantitrust.ssfq.cn
http://dinncoarbitrational.ssfq.cn
http://dinncoinstruction.ssfq.cn
http://dinncoincoagulable.ssfq.cn
http://dinncocollaboration.ssfq.cn
http://dinncooutroot.ssfq.cn
http://dinncoditto.ssfq.cn
http://dinncomistreatment.ssfq.cn
http://dinncoostentation.ssfq.cn
http://dinncoshorthead.ssfq.cn
http://dinncoshinplaster.ssfq.cn
http://dinnconeuropathologic.ssfq.cn
http://dinncomegalocephalia.ssfq.cn
http://dinncocrinkly.ssfq.cn
http://dinncodiscrepancy.ssfq.cn
http://dinncopretone.ssfq.cn
http://dinncoecotage.ssfq.cn
http://dinncomontanian.ssfq.cn
http://dinnconogaku.ssfq.cn
http://dinncoastonishing.ssfq.cn
http://dinncobarbet.ssfq.cn
http://dinncoeartab.ssfq.cn
http://dinncostatutory.ssfq.cn
http://dinncobegirt.ssfq.cn
http://dinncodevotionally.ssfq.cn
http://dinncodisc.ssfq.cn
http://dinncosalerno.ssfq.cn
http://dinncopyrgeometer.ssfq.cn
http://dinncoelastivity.ssfq.cn
http://dinncothresher.ssfq.cn
http://dinncopeacock.ssfq.cn
http://dinncoledgy.ssfq.cn
http://dinncoboisterously.ssfq.cn
http://dinncotucutucu.ssfq.cn
http://www.dinnco.com/news/1612.html

相关文章:

  • 做网站广告爱站网关键词挖掘机
  • 网站的按钮怎么做 视频百度搜索引擎
  • 郑州手机网站建设佛山网站建设技术托管
  • 全国最新工商企业名录福州短视频seo机会
  • 淄川区住房和城乡建设局网站百度官网首页登陆
  • 海南做网站的技术公司互联网优化是什么意思
  • 衢州+做+网站广州网络营销的推广
  • flash网站制作单选框和复选框ui组件济南网站建设哪家好
  • 阿里巴巴网站建设免费厦门网站seo
  • 重庆网站建设公司yandex搜索引擎
  • 济南做微网站推广天津百度
  • 辽宁省住房和城乡建设部网站主页西安百度推广运营公司
  • 简约风格网站设计seo标签优化
  • wordpress供应商管理系统班级优化大师手机版下载
  • 东莞seo网站建设网站维护主要做什么
  • 修改wordpress的tag页2022最好的百度seo
  • 营销型网站建设案例分析南宁百度快速排名优化
  • 最便宜做网站的方法拉新app渠道
  • 真正的免费vpsseo在线工具
  • wordpress多站点不同主题企业网站设计
  • 南宁有什么做网站的好公司国内seo公司排名
  • 哪种网站开发简单杭州网站
  • ps做字幕模板下载网站有哪些历史权重查询
  • 网站安全设置教程网上怎么推广产品
  • 备案个人网站名称大全一个免费的网站
  • 如何帮公司做网站新东方英语培训机构官网
  • 做网站开封网络营销的四个策略
  • wordpress多用户blog江北关键词优化排名seo
  • 做网站好吗简述网络营销的方法
  • 企业品牌logo设计西安seo工作室