Home > database >  What's kubernetes abbreviation for deployments?
What's kubernetes abbreviation for deployments?

Time:06-02

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.

CodePudding user response:

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
...
  • Related