From 4e84c265ce2e09e92d1704c2d680a9e189a3530c Mon Sep 17 00:00:00 2001 From: Morten Torkildsen Date: Sun, 14 Mar 2021 14:22:55 -0700 Subject: [PATCH] Promote Pod Disruption Budgets to GA --- content/en/docs/concepts/workloads/pods/disruptions.md | 2 +- content/en/docs/tasks/run-application/configure-pdb.md | 10 ++++++++-- .../en/examples/application/zookeeper/zookeeper.yaml | 2 +- ...zookeeper-pod-disruption-budget-maxunavailable.yaml | 2 +- .../zookeeper-pod-disruption-budget-minavailable.yaml | 2 +- content/es/docs/tasks/run-application/configure-pdb.md | 6 +++--- .../ja/examples/application/zookeeper/zookeeper.yaml | 2 +- .../ko/examples/application/zookeeper/zookeeper.yaml | 2 +- content/zh/docs/tasks/run-application/configure-pdb.md | 2 +- .../zh/examples/application/zookeeper/zookeeper.yaml | 2 +- ...zookeeper-pod-disruption-budget-maxunavailable.yaml | 2 +- .../zookeeper-pod-disruption-budget-minavailable.yaml | 2 +- 12 files changed, 21 insertions(+), 15 deletions(-) diff --git a/content/en/docs/concepts/workloads/pods/disruptions.md b/content/en/docs/concepts/workloads/pods/disruptions.md index d0a8bbf5a9976..4f5c24b05f769 100644 --- a/content/en/docs/concepts/workloads/pods/disruptions.md +++ b/content/en/docs/concepts/workloads/pods/disruptions.md @@ -90,7 +90,7 @@ disruptions, if any, to expect. ## Pod disruption budgets -{{< feature-state for_k8s_version="v1.5" state="beta" >}} +{{< feature-state for_k8s_version="v1.5" state="stable" >}} Kubernetes offers features to help you run highly available applications even when you introduce frequent voluntary disruptions. diff --git a/content/en/docs/tasks/run-application/configure-pdb.md b/content/en/docs/tasks/run-application/configure-pdb.md index 3823cac4ee934..af692344c775c 100644 --- a/content/en/docs/tasks/run-application/configure-pdb.md +++ b/content/en/docs/tasks/run-application/configure-pdb.md @@ -6,7 +6,7 @@ weight: 110 -{{< feature-state for_k8s_version="v1.5" state="beta" >}} +{{< feature-state for_k8s_version="v1.5" state="stable" >}} This page shows how to limit the number of concurrent disruptions that your application experiences, allowing for higher availability @@ -111,6 +111,12 @@ of the evicted pod. `minAvailable` can be either an absolute number or a percent of the number of pods from that set that can be unavailable after the eviction. It can be either an absolute number or a percentage. +{{< note >}} +The behavior for an empty selector differs between the policy/v1beta1 and policy/v1 apis for +Pod Disruption Budgets. For policy/v1beta1 an empty selector will match zero pods, while +for policy/v1 it will select all pods in the namespace. +{{< /note >}} + {{< note >}} For versions 1.8 and earlier: When creating a `PodDisruptionBudget` object using the `kubectl` command line tool, the `minAvailable` field has a @@ -206,7 +212,7 @@ You can get more information about the status of a PDB with this command: kubectl get poddisruptionbudgets zk-pdb -o yaml ``` ```yaml -apiVersion: policy/v1beta1 +apiVersion: policy/v1 kind: PodDisruptionBudget metadata: annotations: diff --git a/content/en/examples/application/zookeeper/zookeeper.yaml b/content/en/examples/application/zookeeper/zookeeper.yaml index a858a72613d5f..4d893b369bde4 100644 --- a/content/en/examples/application/zookeeper/zookeeper.yaml +++ b/content/en/examples/application/zookeeper/zookeeper.yaml @@ -27,7 +27,7 @@ spec: selector: app: zk --- -apiVersion: policy/v1beta1 +apiVersion: policy/v1 kind: PodDisruptionBudget metadata: name: zk-pdb diff --git a/content/en/examples/policy/zookeeper-pod-disruption-budget-maxunavailable.yaml b/content/en/examples/policy/zookeeper-pod-disruption-budget-maxunavailable.yaml index a62bef140f2b1..ef0b8645bacdf 100644 --- a/content/en/examples/policy/zookeeper-pod-disruption-budget-maxunavailable.yaml +++ b/content/en/examples/policy/zookeeper-pod-disruption-budget-maxunavailable.yaml @@ -1,4 +1,4 @@ -apiVersion: policy/v1beta1 +apiVersion: policy/v1 kind: PodDisruptionBudget metadata: name: zk-pdb diff --git a/content/en/examples/policy/zookeeper-pod-disruption-budget-minavailable.yaml b/content/en/examples/policy/zookeeper-pod-disruption-budget-minavailable.yaml index c4776ad4c0b04..49a66ee66908a 100644 --- a/content/en/examples/policy/zookeeper-pod-disruption-budget-minavailable.yaml +++ b/content/en/examples/policy/zookeeper-pod-disruption-budget-minavailable.yaml @@ -1,4 +1,4 @@ -apiVersion: policy/v1beta1 +apiVersion: policy/v1 kind: PodDisruptionBudget metadata: name: zk-pdb diff --git a/content/es/docs/tasks/run-application/configure-pdb.md b/content/es/docs/tasks/run-application/configure-pdb.md index c863eda497d8d..52bc6a3862d03 100644 --- a/content/es/docs/tasks/run-application/configure-pdb.md +++ b/content/es/docs/tasks/run-application/configure-pdb.md @@ -119,7 +119,7 @@ Puedes encontrar ejemplos de presupuestos de disrupción de pods definidas a con Ejemplo de PDB usando minAvailable: ```yaml -apiVersion: policy/v1beta1 +apiVersion: policy/v1 kind: PodDisruptionBudget metadata: name: zk-pdb @@ -133,7 +133,7 @@ spec: Ejemplo de PDB usando maxUnavailable (Kubernetes 1.7 o superior): ```yaml -apiVersion: policy/v1beta1 +apiVersion: policy/v1 kind: PodDisruptionBudget metadata: name: zk-pdb @@ -187,7 +187,7 @@ Puedes obtener más información sobre el estado de un PDB con este comando: kubectl get poddisruptionbudgets zk-pdb -o yaml ``` ```yaml -apiVersion: policy/v1beta1 +apiVersion: policy/v1 kind: PodDisruptionBudget metadata: creationTimestamp: 2017-08-28T02:38:26Z diff --git a/content/ja/examples/application/zookeeper/zookeeper.yaml b/content/ja/examples/application/zookeeper/zookeeper.yaml index 4afa806a5412b..061161413bf99 100644 --- a/content/ja/examples/application/zookeeper/zookeeper.yaml +++ b/content/ja/examples/application/zookeeper/zookeeper.yaml @@ -27,7 +27,7 @@ spec: selector: app: zk --- -apiVersion: policy/v1beta1 +apiVersion: policy/v1 kind: PodDisruptionBudget metadata: name: zk-pdb diff --git a/content/ko/examples/application/zookeeper/zookeeper.yaml b/content/ko/examples/application/zookeeper/zookeeper.yaml index a858a72613d5f..4d893b369bde4 100644 --- a/content/ko/examples/application/zookeeper/zookeeper.yaml +++ b/content/ko/examples/application/zookeeper/zookeeper.yaml @@ -27,7 +27,7 @@ spec: selector: app: zk --- -apiVersion: policy/v1beta1 +apiVersion: policy/v1 kind: PodDisruptionBudget metadata: name: zk-pdb diff --git a/content/zh/docs/tasks/run-application/configure-pdb.md b/content/zh/docs/tasks/run-application/configure-pdb.md index a7cbaf97dff91..ca0b14712a465 100644 --- a/content/zh/docs/tasks/run-application/configure-pdb.md +++ b/content/zh/docs/tasks/run-application/configure-pdb.md @@ -378,7 +378,7 @@ kubectl get poddisruptionbudgets zk-pdb -o yaml ``` ```yaml -apiVersion: policy/v1beta1 +apiVersion: policy/v1 kind: PodDisruptionBudget metadata: anntation: {} diff --git a/content/zh/examples/application/zookeeper/zookeeper.yaml b/content/zh/examples/application/zookeeper/zookeeper.yaml index a858a72613d5f..4d893b369bde4 100644 --- a/content/zh/examples/application/zookeeper/zookeeper.yaml +++ b/content/zh/examples/application/zookeeper/zookeeper.yaml @@ -27,7 +27,7 @@ spec: selector: app: zk --- -apiVersion: policy/v1beta1 +apiVersion: policy/v1 kind: PodDisruptionBudget metadata: name: zk-pdb diff --git a/content/zh/examples/policy/zookeeper-pod-disruption-budget-maxunavailable.yaml b/content/zh/examples/policy/zookeeper-pod-disruption-budget-maxunavailable.yaml index a62bef140f2b1..ef0b8645bacdf 100644 --- a/content/zh/examples/policy/zookeeper-pod-disruption-budget-maxunavailable.yaml +++ b/content/zh/examples/policy/zookeeper-pod-disruption-budget-maxunavailable.yaml @@ -1,4 +1,4 @@ -apiVersion: policy/v1beta1 +apiVersion: policy/v1 kind: PodDisruptionBudget metadata: name: zk-pdb diff --git a/content/zh/examples/policy/zookeeper-pod-disruption-budget-minavailable.yaml b/content/zh/examples/policy/zookeeper-pod-disruption-budget-minavailable.yaml index c4776ad4c0b04..49a66ee66908a 100644 --- a/content/zh/examples/policy/zookeeper-pod-disruption-budget-minavailable.yaml +++ b/content/zh/examples/policy/zookeeper-pod-disruption-budget-minavailable.yaml @@ -1,4 +1,4 @@ -apiVersion: policy/v1beta1 +apiVersion: policy/v1 kind: PodDisruptionBudget metadata: name: zk-pdb