当前位置:网站首页>Pod 拓扑约束
Pod 拓扑约束
2022-07-23 05:47:00 【study_小达人】
节点标签 :

pod分布约束:
apiVersion: v1
kind: Pod
metadata:
name: mypod
spec:
topologySpreadConstraints:
- maxSkew: <integer>
topologyKey: <string>
whenUnsatisfiable: <string>
labelSelector: <object>
maxSkew描述了 Pod 可能分布不均的程度。它必须大于零。它的语义根据 的值而有所不
同whenUnsatisfiable:(如果是节点层面,不同节点能存在的pod数量最大差异)
当whenUnsatisfiable等于 "DoNotSchedule" 时,maxSkew是目标拓扑中匹配的 pod 数量与全局最小值(拓扑域中匹配标签选择器的最小 pod 数量)之间允许的最大差异。例如,如果您有 3 个区域分别有 0、2 和 3 个匹配的 pod,全局最小值为 0)。
当whenUnsatisfiable等于 "ScheduleAnyway" 时,调度程序为有助于减少偏斜的拓扑提供更高的优先级。
topologyKey是节点标签的键。如果两个节点都使用此键标记并且该标签具有相同的值,则调度程序将这两个节点视为处于相同的拓扑中。调度程序尝试将平衡数量的 Pod 放入每个拓扑域中。
whenUnsatisfiable表示如果 Pod 不满足传播约束,如何处理它:
DoNotSchedule(默认)告诉调度器不要调度它。
ScheduleAnyway告诉调度程序仍然调度它,同时优先考虑最小化偏斜的节点。
labelSelector用于查找匹配的 Pod。对匹配此标签选择器的 Pod 进行计数,以确定其相应拓扑域中的 Pod 数量。
边栏推荐
- OSPF routing strategy and Traffic Capture
- 剖析Redis服务器
- Routing extension configuration of OSPF and rip
- How to solve too many if statements
- HCIP---BGP相关配置
- Learning diary - (routing and switching technology) network address translation NAT Technology
- Analyze redis cluster
- 手动配置DHCP服务
- Reading Phoenix Architecture - History and knowledge of RPC
- Learning diary - (routing and switching technology) dynamic routing (RIP protocol) and static routing
猜你喜欢

Routing and interface technology -- Summary of direct network

学习日记——(路由与交换技术)三层交换机

Link expansion configuration of OSPF

Hcip --- BGP --- border gateway protocol

HCIP-第一次实验

MySQL performance optimization, index optimization

@RequiredArgsConstructor注解使用

HCIP --- HDLC和PPP协议

Unity3d:UGUI,UI与特效粒子层级,2018.2以上版本BakeMesh,粒子在两个Image之间且在ScrollView

如何用普通的文本编辑器写Web页面
随机推荐
如何解决if语句太多
Overview of OpenSSL self visa process
读《凤凰架构》- RPC的历史与知识
HCIP---MGRE环境下的OSPF综合实验
DHCP second experiment
Hcip-hcia knowledge review (II)
C # custom bidirectional linked list
C (CSharp) wechat official account development - basic configuration
浅做一下思科实验吧!
C # custom stack
OSPF comprehensive experiment in hcip-mgre environment
C language can also write Plants vs. Zombies
FTP实验及概述
Routing extension configuration of OSPF and rip
Unity shader missing problem
C#:TopK:1万个数取前最大的100,堆排序
Unity3d:ugui source code eventsystem input system FAQ
路由与交换技术——静态路由
Unity3d:UGUI源碼,Rebuild優化
Delete node in binary sort tree