For kubectl describe I can abbreviate a few classes of resources, for example:
po/xxx -> pods/xxx
rs/xxx -> replicasets/xxx
Where can I find the full list?
I'm trying to find the abbreviation for deployments.
To get a full list of your resources, including their shortname, use:
kubectl api-resources
e.g. Deployment has the shorthname deploy.
Example output from kubectl api-resources:
NAME SHORTNAMES APIVERSION NAMESPACED KIND
daemonsets ds apps/v1 true DaemonSet
deployments deploy apps/v1 true Deployment
replicasets rs apps/v1 true ReplicaSet
statefulsets sts apps/v1 true StatefulSet
...
The kubernetes abbreviation for deployment is deploy
Abbreviations or shorthand for other kubernetes objects are as follows:
certificates = cert, certs
certificiaterequests = cr, crs
certificatesigningrequests = csr
componentstatuses = cs
configmaps = cm
cronjobs = cj
customresourcedefinitions = crd, crds
daemonsets = ds
deployments = deploy
endpoints = ep
events = ev
horizontalpodautoscalers = hpa
ingresses = ing
limitranges = limits
namespaces = ns
networkpolicies = netpol
nodes = no
persistentvolumes = pv
persistentvolumeclaims = pvc
pods = po
podsecuritypolicies = psp
priorityclasses = pc
replicationcontrollers = rc
replicasets = rs
resourcequotas = quota
scheduledscalers = ss
services = svc
serviceaccounts = sa
statefulsets = sts
storageclasses = sc
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With