部署的 kubernetes 缩写是什么?



对于kubectl describe,我可以缩写几类资源,例如:

po/xxx -> pods/xxx
rs/xxx -> replicasets/xxx

我在哪里可以找到完整的列表?

我在找部署的缩写。

要获取资源的完整列表,包括它们的短名称,请使用:

kubectl api-resources

。部署的缩写是deploy


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

部署的kubernetes缩写是deploy

其他kubernetes对象的缩写或简写如下:

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

相关内容

  • 没有找到相关文章

最新更新