Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What's kubernetes abbreviation for deployments?

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.

like image 856
gabriel Avatar asked Feb 03 '26 23:02

gabriel


2 Answers

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
...
like image 194
Jonas Avatar answered Feb 05 '26 14:02

Jonas


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
like image 31
Abhith Shaji Avatar answered Feb 05 '26 14:02

Abhith Shaji



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!