reference/kubectl: Update resource types / short names (#13223)

Signed-off-by: Stephen Augustus <saugustus@vmware.com>
This commit is contained in:
Stephen Augustus
2019-03-20 15:49:05 -07:00
committed by Kubernetes Prow Robot
parent 52384988e1
commit f61ed1d130
+51 -41
View File
@@ -101,48 +101,58 @@ Remember: For more about command operations, see the [kubectl](/docs/user-guide/
## Resource types ## Resource types
The following table includes a list of all the supported resource types and their abbreviated aliases: The following table includes a list of all the supported resource types and their abbreviated aliases.
Resource type | Abbreviated alias (This output can be retrieved from `kubectl api-resources`, and is accurate as of Kubernetes 1.13.3.)
-------------------- | --------------------
`apiservices` | | Resource Name | Short Names | API Group | Namespaced | Resource Kind |
`certificatesigningrequests` |`csr` |---|---|---|---|---|
`clusters` | | `componentstatuses` | `cs` | | false | ComponentStatus |
`clusterrolebindings` | | `configmaps` | `cm` | | true | ConfigMap |
`clusterroles` | | `endpoints` | `ep` | | true | Endpoints |
`componentstatuses` |`cs` | `limitranges` | `limits` | | true | LimitRange |
`configmaps` |`cm` | `namespaces` | `ns` | | false | Namespace |
`controllerrevisions` | | `nodes` | `no` | | false | Node |
`cronjobs` | | `persistentvolumeclaims` | `pvc` | | true | PersistentVolumeClaim |
`customresourcedefinition` |`crd` | `persistentvolumes` | `pv` | | false | PersistentVolume |
`daemonsets` |`ds` | `pods` | `po` | | true | Pod |
`deployments` |`deploy` | `podtemplates` | | | true | PodTemplate |
`endpoints` |`ep` | `replicationcontrollers` | `rc` | | true| ReplicationController |
`events` |`ev` | `resourcequotas` | `quota` | | true | ResourceQuota |
`horizontalpodautoscalers` |`hpa` | `secrets` | | | true | Secret |
`ingresses` |`ing` | `serviceaccounts` | `sa` | | true | ServiceAccount |
`jobs` | | `services` | `svc` | | true | Service |
`limitranges` |`limits` | `mutatingwebhookconfigurations` | | admissionregistration.k8s.io | false | MutatingWebhookConfiguration |
`namespaces` |`ns` | `validatingwebhookconfigurations` | | admissionregistration.k8s.io | false | ValidatingWebhookConfiguration |
`networkpolicies` |`netpol` | `customresourcedefinitions` | `crd`, `crds` | apiextensions.k8s.io | false | CustomResourceDefinition |
`nodes` |`no` | `apiservices` | | apiregistration.k8s.io | false | APIService |
`persistentvolumeclaims` |`pvc` | `controllerrevisions` | | apps | true | ControllerRevision |
`persistentvolumes` |`pv` | `daemonsets` | `ds` | apps | true | DaemonSet |
`poddisruptionbudget` |`pdb` | `deployments` | `deploy` | apps | true | Deployment |
`podpreset` | | `replicasets` | `rs` | apps | true | ReplicaSet |
`pods` |`po` | `statefulsets` | `sts` | apps | true | StatefulSet |
`podsecuritypolicies` |`psp` | `tokenreviews` | | authentication.k8s.io | false | TokenReview |
`podtemplates` | | `localsubjectaccessreviews` | | authorization.k8s.io | true | LocalSubjectAccessReview |
`replicasets` |`rs` | `selfsubjectaccessreviews` | | authorization.k8s.io | false | SelfSubjectAccessReview |
`replicationcontrollers` |`rc` | `selfsubjectrulesreviews` | | authorization.k8s.io | false | SelfSubjectRulesReview |
`resourcequotas` |`quota` | `subjectaccessreviews` | | authorization.k8s.io | false | SubjectAccessReview |
`rolebindings` | | `horizontalpodautoscalers` | `hpa` | autoscaling | true | HorizontalPodAutoscaler |
`roles` | | `cronjobs` | `cj` | batch | true | CronJob |
`secrets` | | `jobs` | | batch | true | Job |
`serviceaccounts` |`sa` | `certificatesigningrequests` | `csr` | certificates.k8s.io | false | CertificateSigningRequest |
`services` |`svc` | `leases` | | coordination.k8s.io | true | Lease |
`statefulsets` | | `events` | `ev` | events.k8s.io | true | Event |
`storageclasses` | | `ingresses` | `ing` | extensions | true | Ingress |
| `networkpolicies` | `netpol` | networking.k8s.io | true | NetworkPolicy |
| `poddisruptionbudgets` | `pdb` | policy | true | PodDisruptionBudget |
| `podsecuritypolicies` | `psp` | policy | false | PodSecurityPolicy |
| `clusterrolebindings` | | rbac.authorization.k8s.io | false | ClusterRoleBinding |
| `clusterroles` | | rbac.authorization.k8s.io | false | ClusterRole |
| `rolebindings` | | rbac.authorization.k8s.io | true | RoleBinding |
| `roles` | | rbac.authorization.k8s.io | true | Role |
| `priorityclasses` | `pc` | scheduling.k8s.io | false | PriorityClass |
| `storageclasses` | `sc` | storage.k8s.io | false | StorageClass |
| `volumeattachments` | | storage.k8s.io | false | VolumeAttachment |
## Output options ## Output options