PodDisruptionBudget [policy/v1]
- 描述
- PodDisruptionBudget is an object to define the max disruption that can be caused to a collection of pods
- 类型
object
规格
.spec
- 描述
- PodDisruptionBudgetSpec is a description of a PodDisruptionBudget.
- 类型
object
.spec.selector
- 描述
- A label selector is a label query over a set of resources. The result of matchLabels and matchExpressions are ANDed. An empty label selector matches all objects. A null label selector matches no objects.
- 类型
object
.spec.selector.matchExpressions
- 描述
- matchExpressions is a list of label selector requirements. The requirements are ANDed.
- 类型
array
.spec.selector.matchExpressions[]
- 描述
- A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values.
- 类型
object- 必填
keyoperator
.spec.selector.matchExpressions[].values
- 描述
- values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch.
- 类型
array
.spec.selector.matchExpressions[].values[]
- 类型
string
.spec.selector.matchLabels
- 描述
- matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed.
- 类型
object
.status
- 描述
- PodDisruptionBudgetStatus represents information about the status of a PodDisruptionBudget. Status may trail the actual state of a system.
- 类型
object
.status.conditions
- 描述
- Conditions contain conditions for PDB. The disruption controller sets the DisruptionAllowed condition. The following are known values for the reason field (additional reasons could be added in the future): - SyncFailed: The controller encountered an error and wasn't able to compute the number of allowed disruptions. Therefore no disruptions are allowed and the status of the condition will be False. - InsufficientPods: The number of pods are either at or below the number required by the PodDisruptionBudget. No disruptions are allowed and the status of the condition will be False. - SufficientPods: There are more pods than required by the PodDisruptionBudget. The condition will be True, and the number of allowed disruptions are provided by the disruptionsAllowed property.
- 类型
array
.status.conditions[]
- 描述
- Condition contains details for one aspect of the current state of this API Resource.
- 类型
object- 必填
typestatuslastTransitionTimereasonmessage
.status.disruptedPods
- 描述
- DisruptedPods contains information about pods whose eviction was processed by the API server eviction subresource handler but has not yet been observed by the PodDisruptionBudget controller. A pod will be in this map from the time when the API server processed the eviction request to the time when the pod is seen by PDB controller as having been marked for deletion (or after a timeout). The key in the map is the name of the pod and the value is the time when the API server processed the eviction request. If the deletion didn't occur and a pod is still there it will be removed from the list automatically by PodDisruptionBudget controller after some time. If everything goes smooth this map should be empty for the most of the time. Large number of entries in the map may indicate problems with pod deletions.
- 类型
object
API 端点
可用的 API 端点如下:
/kubernetes/{cluster}/apis/policy/v1/namespaces/{namespace}/poddisruptionbudgetsDELETE: delete collection of PodDisruptionBudgetGET: list objects of kind PodDisruptionBudgetPOST: create a new PodDisruptionBudget
/kubernetes/{cluster}/apis/policy/v1/namespaces/{namespace}/poddisruptionbudgets/{name}DELETE: delete the specified PodDisruptionBudgetGET: read the specified PodDisruptionBudgetPATCH: partially update the specified PodDisruptionBudgetPUT: replace the specified PodDisruptionBudget
/kubernetes/{cluster}/apis/policy/v1/namespaces/{namespace}/poddisruptionbudgets/{name}/statusGET: read status of the specified PodDisruptionBudgetPATCH: partially update status of the specified PodDisruptionBudgetPUT: replace status of the specified PodDisruptionBudget
/kubernetes/{cluster}/apis/policy/v1/namespaces/{namespace}/poddisruptionbudgets
- HTTP 方法
DELETE- 描述
- delete collection of PodDisruptionBudget
- HTTP 响应
- HTTP 方法
GET- 描述
- list objects of kind PodDisruptionBudget
- HTTP 响应
- HTTP 方法
POST- 描述
- create a new PodDisruptionBudget
- 查询参数
- 请求体参数
- HTTP 响应
/kubernetes/{cluster}/apis/policy/v1/namespaces/{namespace}/poddisruptionbudgets/{name}
- HTTP 方法
DELETE- 描述
- delete the specified PodDisruptionBudget
- 查询参数
- HTTP 响应
- HTTP 方法
GET- 描述
- read the specified PodDisruptionBudget
- HTTP 响应
- HTTP 方法
PATCH- 描述
- partially update the specified PodDisruptionBudget
- 查询参数
- HTTP 响应
- HTTP 方法
PUT- 描述
- replace the specified PodDisruptionBudget
- 查询参数
- 请求体参数
- HTTP 响应
/kubernetes/{cluster}/apis/policy/v1/namespaces/{namespace}/poddisruptionbudgets/{name}/status
- HTTP 方法
GET- 描述
- read status of the specified PodDisruptionBudget
- HTTP 响应
- HTTP 方法
PATCH- 描述
- partially update status of the specified PodDisruptionBudget
- 查询参数
- HTTP 响应
- HTTP 方法
PUT- 描述
- replace status of the specified PodDisruptionBudget
- 查询参数
- 请求体参数
- HTTP 响应