当前位置:网站首页>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 数量。
边栏推荐
- Analysis of Internet Protocol (II)
- 深入解析Redis中的复制
- Gameframework: package resources, publish packages with the app, package and generate folder instructions, upload resources to the server, download resources, gamefreamworklist DAT and gameframeworkve
- 超好用的抓包工具tcpdump
- OSPF的路由策略和流量抓取
- 剖析Redis中的Sentinel模式
- Hcip--- BGP related configuration (Federal chapter)
- 直白理解一文搞定http协议缓存
- Unity3d:UGUI源码,Rebuild优化
- Hcip --- HCIA knowledge review (I)
猜你喜欢

@RequiredArgsConstructor注解使用
![[AUTOSAR storage stack NVM]](/img/7a/15e01f8ace647b55e11e764dba1b64.png)
[AUTOSAR storage stack NVM]

OSPF comprehensive experiment in hcip-mgre environment

为什么要搭建本地yum仓库?

C language can also write Plants vs. Zombies

HCIP---HCIA知识回顾(一)

Hcip-hcia knowledge review (II)

C#:快速排序,有相同的数字会忽略,然后继续先前的寻找方向去找下一个满足要求的数字进行替换

Hcip --- HCIA knowledge review (I)

静态路由原理与配置
随机推荐
post表单提交数据限制
Unity3d:ugui, UI and special effect particle level, bakemesh above 2018.2, particles between two images and in Scrollview
Unity Shader丢失问题
Openssl自行签证流程概述
Learning diary - (routing and switching technology) single arm routing
路由与交换技术——静态路由
HCIP-HCIA知识回顾(二)
HCIP---条件匹配和OSPF协议
@RequiredArgsConstructor注解使用
详解TCP的交互数据流和成块数据流
C (CSharp) wechat official account development - basic configuration
C#:stack栈源码,数组栈,链栈
Unity3d+gameframework: resource analysis, resource dependency, circular dependency detection
DHCP原理与配置
Article on the basic technology needed to build hybrid app
Hcip--- BGP related configuration (Federal chapter)
超好用的抓包工具tcpdump
HCIP---GRE协议和MGRE环境,以及OSPF协议的相关知识点
Unity3d: special effect object pool, timeout delete GameObject in the pool, GC weight
Overview of OpenSSL self visa process