Skip to content

Commit

Permalink
more details on kubectl explain
Browse files Browse the repository at this point in the history
  • Loading branch information
christophchamp committed Feb 12, 2021
1 parent 3e22d64 commit 1b99ff9
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions 03_kubernetes_aks/03_standing_up_your_first_cluster/04_kubectl.md
Original file line number Diff line number Diff line change
Expand Up @@ -315,3 +315,31 @@ KIND: ConfigMap
VERSION: v1
...
```

* Get a list of _all_ allowable fields for a given primitive:
```
$ kubectl explain deployment --recursive | head
KIND: Deployment
VERSION: apps/v1
DESCRIPTION:
Deployment enables declarative updates for Pods and ReplicaSets.
FIELDS:
apiVersion <string>
kind <string>
metadata <Object>
```

* Get documentation ("man page"-style) for a given field in a given primitive:
```
$ kubectl explain deployment.status.availableReplicas
KIND: Deployment
VERSION: apps/v1
FIELD: availableReplicas <integer>
DESCRIPTION:
Total number of available pods (ready for at least minReadySeconds)
targeted by this deployment.
```

0 comments on commit 1b99ff9

Please sign in to comment.