zoukankan      html  css  js  c++  java
  • k8s调度的亲和性和反亲和性

    文章转自 

    http://ju.outofmemory.cn/entry/278349

    https://www.jianshu.com/p/102c4df69af9

    RequiredDuringSchedulingRequiredDuringExecution :在调度期间要求满足亲和性或者反亲和性规则,如果不能满足规则,则POD不能被调度到对应的主机上。在之后的运行过程中,如果因为某些原因(比如修改label)导致规则不能满足,系统会尝试把POD从主机上删除(现在版本还不支持)。
    
    RequiredDuringSchedulingIgnoredDuringExecution :在调度期间要求满足亲和性或者反亲和性规则,如果不能满足规则,则POD不能被调度到对应的主机上。在之后的运行过程中,系统不会再检查这些规则是否满足。
    
    PreferredDuringSchedulingIgnoredDuringExecution :在调度期间尽量满足亲和性或者反亲和性规则,如果不能满足规则,POD也有可能被调度到对应的主机上。在之后的运行过程中,系统不会再检查这些规则是否满足。
    ## Anti-Affinity setting. The default "hard" will use pod anti-affinity that is
    ## requiredDuringSchedulingIgnoredDuringExecution to ensure 2 services don't
    ## end up on the same node. Setting this to "soft" will use
    ## preferredDuringSchedulingIgnoredDuringExecution. If set to anything else,
    ## no anti-affinity rules will be configured.
    antiAffinity: "soft"
    配置设置成hard则不会调度到同一个节点
  • 相关阅读:
    python 函数
    python控制流
    python数据类型转换
    python变量
    chardet查看字符串的编码(非常好用)
    python编码转换
    系统、浏览器兼容性测试注意事项
    python数据类型
    Python二进制转十进制算法、十进转二进制算法
    介绍几个C#正则表达式工具
  • 原文地址:https://www.cnblogs.com/shuaiandjun/p/9557776.html
Copyright © 2011-2022 走看看