Skip to content
This repository has been archived by the owner on Jan 6, 2023. It is now read-only.

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
wzshiming authored Jul 19, 2022
1 parent 1c0ccc9 commit 1cb2104
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,12 +102,16 @@ fake-pod-78884479b7-rzbs2 1/1 Running 0 6s 10.0.0.17 fake-
fake-pod-78884479b7-scsjb 1/1 Running 0 6s 10.0.0.25 fake-1 <none> <none>
```

Modify a container of pod as unready and you will see the pod is `0/1` of ready.
By adding the specified Annotation, the status of Pods can be modified independently.

Modify a container of pod as unready, and you will see the pod is `0/1` of ready.

``` console
> kubectl annotate pod fake-pod-78884479b7-52qcx --overwrite fake/status.containerStatuses.0.ready=false
> kubectl annotate pod fake-pod-78884479b7-52qcx --overwrite fake=custom
pod/fake-pod-78884479b7-52qcx annotated

> kubectl edit pod fake-pod-78884479b7-52qcx --subresource=status

> kubectl get pod fake-pod-78884479b7-52qcx -o wide
NAME READY STATUS RESTARTS AGE IP NODE NOMINATED NODE READINESS GATES
fake-pod-78884479b7-52qcx 0/1 Running 0 6s 10.0.0.23 fake-4 <none> <none>
Expand Down Expand Up @@ -168,11 +172,11 @@ EOF
``` console
> kubectl get node -o wide
NAME STATUS ROLES AGE VERSION INTERNAL-IP EXTERNAL-IP OS-IMAGE KERNEL-VERSION CONTAINER-RUNTIME
fake-0 Ready agent 10s fake 10.88.0.136 <none> <unknown> <unknown> <unknown>
fake-1 Ready agent 10s fake 10.88.0.136 <none> <unknown> <unknown> <unknown>
fake-2 Ready agent 10s fake 10.88.0.136 <none> <unknown> <unknown> <unknown>
fake-3 Ready agent 10s fake 10.88.0.136 <none> <unknown> <unknown> <unknown>
fake-4 Ready agent 10s fake 10.88.0.136 <none> <unknown> <unknown> <unknown>
fake-0 Ready agent 12s fake 10.88.0.136 <none> <unknown> <unknown> <unknown>
fake-1 Ready agent 12s fake 10.88.0.136 <none> <unknown> <unknown> <unknown>
fake-2 Ready agent 12s fake 10.88.0.136 <none> <unknown> <unknown> <unknown>
fake-3 Ready agent 12s fake 10.88.0.136 <none> <unknown> <unknown> <unknown>
fake-4 Ready agent 12s fake 10.88.0.136 <none> <unknown> <unknown> <unknown>
fake-arm-0 Ready agent 2s fake 10.88.0.136 <none> <unknown> <unknown> <unknown>
```

Expand Down

0 comments on commit 1cb2104

Please sign in to comment.