Modify Resource Types section in kubectl cheat sheet

This commit is contained in:
lucperkins 2018-07-09 13:49:23 -07:00
parent 11b28cc7c5
commit adb630d88e
1 changed files with 15 additions and 40 deletions

View File

@ -241,47 +241,22 @@ $ kubectl taint nodes foo dedicated=special-user:NoSchedule
## Resource types ## Resource types
The following table includes a list of all the supported resource types and their abbreviated aliases: List all supported resource types along with their shortnames, [API group](/docs/concepts/overview/kubernetes-api/#api-groups), whether they are [namespaced](/docs/concepts/overview/working-with-objects/namespaces), and [Kind](/docs/concepts/overview/working-with-objects/kubernetes-objects):
Resource type | Abbreviated alias ```console
-------------------- | -------------------- $ kubectl api-resources
`all` | ```
`certificatesigningrequests` |`csr`
`clusterrolebindings` | Other operations for exploring API resources:
`clusterroles` |
`componentstatuses` |`cs` ```console
`configmaps` |`cm` $ kubectl api-resources --namespaced=true # All namespaced resources
`controllerrevisions` | $ kubectl api-resources --namespaced=false # All non-namespaced resources
`cronjobs` | $ kubectl api-resources -o name # All resources with simple output (just the resource name)
`customresourcedefinition` |`crd`, `crds` $ kubectl api-resources -o wide # All resources with expanded (aka "wide") output
`daemonsets` |`ds` $ kubectl api-resources --verbs=[list, get] # All resources that support the "list" and "get" request verbs
`deployments` |`deploy` $ kubectl api-resources --api-group=extensions # All resources in the "extensions" API group
`endpoints` |`ep` ```
`events` |`ev`
`horizontalpodautoscalers` |`hpa`
`ingresses` |`ing`
`jobs` |
`limitranges` |`limits`
`namespaces` |`ns`
`networkpolicies` |`netpol`
`nodes` |`no`
`persistentvolumeclaims` |`pvc`
`persistentvolumes` |`pv`
`poddisruptionbudgets` |`pdb`
`podpreset` |
`pods` |`po`
`podsecuritypolicies` |`psp`
`podtemplates` |
`replicasets` |`rs`
`replicationcontrollers` |`rc`
`resourcequotas` |`quota`
`rolebindings` |
`roles` |
`secrets` |
`serviceaccount` |`sa`
`services` |`svc`
`statefulsets` |`sts`
`storageclasses` |`sc`
### Formatting output ### Formatting output