Update PDB sample (#19460)

pull/19495/head
Kubernetes Prow Robot 2020-03-05 08:30:38 -08:00 committed by GitHub
parent 3d63002fa3
commit b92ea5765e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 9 additions and 8 deletions

View File

@ -180,8 +180,8 @@ then you'll see something like this:
kubectl get poddisruptionbudgets kubectl get poddisruptionbudgets
``` ```
``` ```
NAME MIN-AVAILABLE ALLOWED-DISRUPTIONS AGE NAME MIN AVAILABLE MAX UNAVAILABLE ALLOWED DISRUPTIONS AGE
zk-pdb 2 0 7s zk-pdb 2 N/A 0 7s
``` ```
If there are matching pods (say, 3), then you would see something like this: If there are matching pods (say, 3), then you would see something like this:
@ -190,11 +190,11 @@ If there are matching pods (say, 3), then you would see something like this:
kubectl get poddisruptionbudgets kubectl get poddisruptionbudgets
``` ```
``` ```
NAME MIN-AVAILABLE ALLOWED-DISRUPTIONS AGE NAME MIN AVAILABLE MAX UNAVAILABLE ALLOWED DISRUPTIONS AGE
zk-pdb 2 1 7s zk-pdb 2 N/A 1 7s
``` ```
The non-zero value for `ALLOWED-DISRUPTIONS` means that the disruption controller has seen the pods, The non-zero value for `ALLOWED DISRUPTIONS` means that the disruption controller has seen the pods,
counted the matching pods, and updated the status of the PDB. counted the matching pods, and updated the status of the PDB.
You can get more information about the status of a PDB with this command: You can get more information about the status of a PDB with this command:
@ -206,14 +206,15 @@ kubectl get poddisruptionbudgets zk-pdb -o yaml
apiVersion: policy/v1beta1 apiVersion: policy/v1beta1
kind: PodDisruptionBudget kind: PodDisruptionBudget
metadata: metadata:
creationTimestamp: 2017-08-28T02:38:26Z annotations:
creationTimestamp: "2020-03-04T04:22:56Z"
generation: 1 generation: 1
name: zk-pdb name: zk-pdb
status: status:
currentHealthy: 3 currentHealthy: 3
desiredHealthy: 3 desiredHealthy: 2
disruptedPods: null
disruptionsAllowed: 1 disruptionsAllowed: 1
expectedPods: 3 expectedPods: 3
observedGeneration: 1 observedGeneration: 1