首页 > 其他分享 >003_Readiness gates详解

003_Readiness gates详解

时间:2022-09-23 15:56:09浏览次数:62  
标签:status Readiness False ... 003 gates Pod condition

一、

使用kubectl get pods -o wide可以看到有一列字段为"READINESS GATES"

详解如下:

FEATURE STATE: Kubernetes v1.14 [stable]

Your application can inject extra feedback or signals into PodStatus: Pod readiness. To use this, set readinessGates in the Pod's spec to specify a list of additional conditions that the kubelet evaluates for Pod readiness.

Readiness gates are determined by the current state of status.condition fields for the Pod. If Kubernetes cannot find such a condition in the status.conditions field of a Pod, the status of the condition is defaulted to "False".

Here is an example:

kind: Pod
...
spec:
  readinessGates:
    - conditionType: "www.example.com/feature-1"
status:
  conditions:
    - type: Ready                              # a built in PodCondition
      status: "False"
      lastProbeTime: null
      lastTransitionTime: 2018-01-01T00:00:00Z
    - type: "www.example.com/feature-1"        # an extra PodCondition
      status: "False"
      lastProbeTime: null
      lastTransitionTime: 2018-01-01T00:00:00Z
  containerStatuses:
    - containerID: docker://abcd...
      ready: true
...

 

Reference: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#pod-readiness-gate

标签:status,Readiness,False,...,003,gates,Pod,condition
From: https://www.cnblogs.com/itcomputer/p/16723004.html

相关文章

  • 003 逻辑运算的高级用法
    [A]可选链(?.)场景:1. 开发中,我们经常使用obj.name的方式区获取对象的属性2.而我们又无法保证obj本身一定存在,若obj为null,undefined,以及obj......
  • “EXP-00003: 未找到段 (0,0) 的存储定义”错误
    导出oracle11.2.0.2的服务器的数据时,报“EXP-00003:未找到段(0,0)的存储定义”错误。初步分析是由于数据表是空表导致该问题。Oracle11G在用EXPORT导出时,空表不能导......
  • T1003: 对齐输出(信息学一本通C++)
    [题目描述]读入三个整数,按每个整数占8个字符的宽度,右对齐输出它们,按照格式要求依次输出三个整数,之间以一个空格分开。[输入]只有一行,按照格式要求依次输出三个整数,之间......
  • 剑指 Offer II 003. 前 n 个数字二进制中 1 的个数【模拟】
    题目给定一个非负整数n,请计算0到n之间的每个数字的二进制表示中1的个数,并输出一个数组。难度:简单说明:0<=n<=105题解按照题意模拟即可classSolutio......
  • 4. [2003年NOIP普及组] 栈
    #include<iostream>#include<cstdio>#include<cmath>usingnamespacestd;//因为我们要求的方案数,可以借用离散的思想——//不用考虑每个数组中具体是那个数//只......
  • python 爬虫出现的问题,出现\u003等字符
    出现问题解决方法json.load(内容)结果 ......
  • windows 2003 server性能监视器
    windows2003server性能监视器(转)-cheneric-博客园 https://www.cnblogs.com/lovko/archive/2009/05/25/1488671.html为什么要监视服务器性能:在企业环境中,服务......
  • Solution Set -「AGC 001~003」C~F
    目录「AGC001C」ShortenDiameter「AGC001D」ArraysandPalindrome*「AGC001E」BBQHard*「AGC001F」WildSwap^「AGC002C」KnotPuzzle「AGC002D」StampRally......
  • 1003:对齐输出
    时间限制:1000ms      内存限制:66536KB提交数:238575   通过数:77457【题目描述】读入三个整数,按每个整数占8个字符的宽度,右对齐输出它们,按照格......
  • P1042 [NOIP2003 普及组] 乒乓球
    题目背景国际乒联现在主席沙拉拉自从上任以来就立志于推行一系列改革,以推动乒乓球运动在全球的普及。其中 1111 分制改革引起了很大的争议,有一部分球员因为无法适应新......