您现在的位置是:热点 >>正文
云计算核心技术Docker教程:Docker Swarm 模式管理集群更新一个节点
热点06314人已围观
简介...
更改节点可用性
更改节点可用性可让您:
排空管理器节点,以便仅执行群管理任务,不可用于任务分配。
排空一个节点,以便您可以将其关闭以进行维护。
暂云计停一个节点,使其无法接收新任务。
恢复不可用或暂停的节点可用状态。
例如,要将管理器节点更改为Drain可用性:
$ docker node updat算核e --availability drain node-1
添加或删除标签元数据
节点标签提供了一种灵活的节点组织方法。您还可以在服务约束中使用节点标签心技。创建服务时应用约束以限制调度程序为服务分配任务的节点。
docker node update --label-add在管理节点上运行以向节点添加标术D签元数据。该--label-add标志支持一=对或一对。
--label-add为要添加的每个节点标签传递一次标志:
$ docker node uocpdate --label-add foo --label-add bar=baz node-1
您使用 docker node update 为节点设置的标签仅ke适用于 swarm 中的节点实体。不要将它们与dockerd 的 docker守护进程标签 混淆。
因此,节点标签可用于将关键任务限制在满足特定要求的节r教点上。例如,仅在应运行特殊工作负载的机器上进行调度,例如满足PCI-SS 合规性的机器。
被破坏的节点无法危害这些特殊的工作负载,因为它无法更改程:节点标签。
然而,引擎标签仍然有用,因为一些不影响容器安全编排的功能可能会更好地以分散的方式设置。例如,一个引擎可以有一个标签来表明它具有某种类型的Do磁盘设备,这可能与安全性没有直接关系。这些标签更容易被群协调器“信任”。
提升或降级节点
您可以将工作节点提升为经理角色。当管理器节点变得不可ck用或您想让管理器脱机进行维护时,这很有用。同样,您可以将管理节点降级为辅助角色。
要提升一个节点或一组节点,请docker node promote从管理er器节点运行:
$ docker node promote node-3 node-2
要降级一个节点或一组节点,请docker node demote从管理器节 S点运行:
$ docker node demote node-3 node-2
docker node promote并且docker node demote是为wa了方便的命令 docker node update --role manager和docker node update --role worker 分别。
Tags:
相关文章
云计算核心技术Docker教程:Docker 守护进程dockerd允许推送工件
热点某些镜像(例如Windows基本镜像)包含伪装,这些伪造的分发受许可证限制。将这些镜像推送到注册表时,不包括受限的工件。 要为特定注册表覆盖此行为,请使用--allow-nondistributabl...
【热点】
阅读更多加州率先立法监管AI聊天机器人:保护未成年人,最高罚款25万美元
热点美国加州在AI监管领域再次走在前列。州长加文·纽森周一签署了一项里程碑式法案,对AI伴侣聊天机器人实施监管,使加州成为全美首个要求AI聊天机器人运营商为AI伴侣实施安全协议的州。 这项名为SB243的...
【热点】
阅读更多云计算核心技术Docker教程:Docker使用Splunk 日志驱动程序
热点该splunk日志驱动程序发送容器日志 HTTP事件收集器 中的Splunk Enterprise和Splunk的云。 用法 您可以将 Docker 日志配置splunk为默认使用驱动程序或在每个容器...
【热点】
阅读更多
热门文章
最新文章
友情链接
- 标签: 康师傅
- https://www.lauben.com/de/?s=谷歌霸屏24小时见效-实现思路与效果衡量【tg:seogoogle987】,wUQ
- https://www.parl.ca/legisinfo/fr/projets-de-loi?parlsession=all&view=list&keywords=谷歌霸屏24小时见效-实现思路与效果衡量【tg:seogoogle987】,gW7
- https://www.scq.ubc.ca/?page=2&s=谷歌霸屏24小时见效-实现思路与效果衡量【tg:seogoogle987】,IzS
- https://www.simcoemuskokahealth.org/SearchResults.aspx?SearchQuery=谷歌霸屏24小时见效-实现思路与效果衡量【tg:seogoogle987】,tJe
- https://www.skicheck.at/en/?action=CHECK&s=谷歌霸屏24小时见效-实现思路与效果衡量【tg:seogoogle987】,AwD
- https://www.tailoy.com.pe/catalogsearch/result/?q=谷歌霸屏24小时见效-实现思路与效果衡量【tg:seogoogle987】,sTz
- https://www.lyrics.com/lyrics/kkk3谷歌霸屏24小时见效-实现思路与效果衡量【tg:seogoogle987】,JWd
- https://www.kores.com/?s=谷歌霸屏24小时见效-实现思路与效果衡量【tg:seogoogle987】,p9z
- https://www.therapeuticassociates.com/?cat=5&s=谷歌霸屏24小时见效-实现思路与效果衡量【tg:seogoogle987】,n0V
- https://www.hanbat.ac.kr/search/front/Search.jsp?qt=谷歌霸屏24小时见效-实现思路与效果衡量【tg:seogoogle987】UGS
- https://www.ng-slo.si/si/iskanje?cat=114&q=谷歌霸屏24小时见效-实现思路与效果衡量【tg:seogoogle987】,HsO
- https://www.paxnet.co.kr/search/jongmok?kwd=谷歌霸屏24小时见效-实现思路与效果衡量【tg:seogoogle987】l3c
- https://5gaa.org/?token=6e2l7hjt2i26gzgctgwdrv7v0j6nxorq&s=谷歌霸屏24小时见效-实现思路与效果衡量【tg:seogoogle987】qGo
- https://www.nctsn.org/search?cat=191&query=谷歌霸屏24小时见效-实现思路与效果衡量【tg:seogoogle987】,RGC
- https://www.rostaing.com/catalogsearch/result/?cat=22&q=谷歌霸屏24小时见效-实现思路与效果衡量【tg:seogoogle987】,OsA
- https://www.teacherspayteachers.com/Browse/Price-Range/Free/Search:Western International University Physics degree=谷歌霸屏24小时见效-实现思路与效果衡量【tg:seogoogle987】,eaz
- https://www.navylookout.com/?ID=nSBR6Ivdu6lZg1yr2SDs30Lo5sTs76yJ&s=谷歌霸屏24小时见效-实现思路与效果衡量【tg:seogoogle987】,k3q
- https://www.kawainter.com/catalogsearch/result/?q=谷歌霸屏24小时见效-实现思路与效果衡量【tg:seogoogle987】,BCG
- https://www.madebyoranges.com/nl/search/谷歌霸屏24小时见效-实现思路与效果衡量【tg:seogoogle987】,nT5
- https://www.sportbiketracktime.com/index.php?route=product/search&tag=谷歌霸屏24小时见效-实现思路与效果衡量【tg:seogoogle987】,HIP
- https://www.roberthalf.com/us/en/jobs/all/谷歌霸屏24小时见效-实现思路与效果衡量【tg:seogoogle987】q51
- https://www.remit.co.jp/zh/?s=谷歌霸屏24小时见效-实现思路与效果衡量【tg:seogoogle987】,5GM
- https://yscc1986.net/search/谷歌霸屏24小时见效-实现思路与效果衡量【tg:seogoogle987】8EJ
- https://www.sbaad.no/?s=谷歌霸屏24小时见效-实现思路与效果衡量【tg:seogoogle987】,NjD
- https://www.quarterjacksurgery.co.uk/?AT=3rBy&s=谷歌霸屏24小时见效-实现思路与效果衡量【tg:seogoogle987】,gcd
- https://www.teamlab.art/ko/?submit=谷歌霸屏24小时见效-实现思路与效果衡量【tg:seogoogle987】,3fl
- https://www.lssystems.co.uk/search?page=0&per_page=24&term=谷歌霸屏24小时见效-实现思路与效果衡量【tg:seogoogle987】,2iB
- https://www.teamlab.art/it/?submit=谷歌霸屏24小时见效-实现思路与效果衡量【tg:seogoogle987】,4Uc
- https://www.libros.unam.mx/catalogsearch/result/?cat=37&dir=asc&format=20&lit=20&manufacturer=3230&mode=list&order=year_edition&q=谷歌霸屏24小时见效-实现思路与效果衡量【tg:seogoogle987】,e0Z
- https://yokohama-oht.com/?action=CHECK&s=谷歌霸屏24小时见效-实现思路与效果衡量【tg:seogoogle987】,OxY
- https://www.teacherspayteachers.com/Browse/Price-Range/Free/Search:谷歌霸屏24小时见效-实现思路与效果衡量【tg:seogoogle987】,vNo
- https://www.swanagerailway.co.uk/search?q=谷歌霸屏24小时见效-实现思路与效果衡量【tg:seogoogle987】,VoE
- https://www.l-and-b.jp/?page=1&s=谷歌霸屏24小时见效-实现思路与效果衡量【tg:seogoogle987】,fxt
- https://www.urmc.rochester.edu/news/search?q=谷歌霸屏24小时见效-实现思路与效果衡量【tg:seogoogle987】,f8H
- https://www.wellbees.com/catalogsearch/result/?action=CHECK&q=谷歌霸屏24小时见效-实现思路与效果衡量【tg:seogoogle987】,OKZ
- https://www.signingsavvy.com/sentence/谷歌霸屏24小时见效-实现思路与效果衡量【tg:seogoogle987】,jq9
- https://www.maigoo.com/search/?block=&q=谷歌霸屏24小时见效-实现思路与效果衡量【tg:seogoogle987】,AeB
- https://www.military-history.org/?s=谷歌霸屏24小时见效-实现思路与效果衡量【tg:seogoogle987】,K7e
- https://www.zisha.com/shop/list.shtml?wap_keyword=谷歌霸屏24小时见效-实现思路与效果衡量【tg:seogoogle987】,QcF
- https://www.spoiledsweetboutique.com/search/谷歌霸屏24小时见效-实现思路与效果衡量【tg:seogoogle987】,4aL
- https://www.valuecolleges.com/?action=QUERY&s=谷歌霸屏24小时见效-实现思路与效果衡量【tg:seogoogle987】,8kg
- https://www.remit.co.jp/ne/?s=谷歌霸屏24小时见效-实现思路与效果衡量【tg:seogoogle987】,Q1e
- https://www.temu.com/search_result.html?search_key=谷歌霸屏24小时见效-实现思路与效果衡量【tg:seogoogle987】uOu
- https://www.nonsolocap.it/cap?action=SEARCH&k=谷歌霸屏24小时见效-实现思路与效果衡量【tg:seogoogle987】,rzT
- https://www.selfsufficientish.com/main/?s=谷歌霸屏24小时见效-实现思路与效果衡量【tg:seogoogle987】,6OV
- https://www.lneg.pt/en/?s=谷歌霸屏24小时见效-实现思路与效果衡量【tg:seogoogle987】,4RD
- https://www.nslcleaders.org/?s=谷歌霸屏24小时见效-实现思路与效果衡量【tg:seogoogle987】,TNq
- https://www.yli.ro/catalogsearch/result/?q=谷歌霸屏24小时见效-实现思路与效果衡量【tg:seogoogle987】,L8m
- https://www.temu.com/search_result.html?search_key=谷歌霸屏24小时见效-实现思路与效果衡量【tg:seogoogle987】rXY
- https://www.kingston.gov.uk/site-search/results/?q=谷歌霸屏24小时见效-实现思路与效果衡量【tg:seogoogle987】,UIU