kubernetes-yaml/description/Strategy/PodDisruptionBudget/description.yml

23 lines
731 B
YAML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# PodDisruptionBudgetPod干扰预算说明官方文档https://v1-22.docs.kubernetes.io/zh/docs/tasks/run-application/configure-pdb
# API 版本
apiVersion: policy/v1beta1
# 资源类型
kind: PodDisruptionBudget
# 元数据
metadata:
## 名称
name: 此 PodDisruptionBudget 的名称
## 命名空间
namespace: 此 PodDisruptionBudget 所属的命名空间
# 数据
spec:
## 最少可用 Pod 数(可配置绝对值或百分比,不能和 maxUnavailable 同时存在)
minAvailable: 2
## 最大不可用 Pod 数(可配置绝对值或百分比,不能和 minAvailable 同时存在)
maxUnavailable: 50%
## 作用的 Pod 集合
selector:
### 标签选择
matchLabels:
name: value