kubernetes部署的缩写是什么?

jecbmhm3  于 2023-03-17  发布在  Kubernetes
关注(0)|答案(2)|浏览(103)

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

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

我在哪里可以找到完整的列表?
我在找部署的缩写。

mwkjh3gx

mwkjh3gx1#

要获取资源的完整列表(包括其 * 简称 *),请用途:

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

jucafojl2#

componentstatuses = cs
configmaps = cm
endpoints = ep
events = ev
limitranges = limits
namespaces = ns
nodes = no
persistentvolumeclaims = pvc
persistentvolumes = pv
pods = po
replicationcontrollers = rc
resourcequotas = quota
serviceaccounts = sa
services = svc
customresourcedefinitions = crd, crds
daemonsets = ds
deployments = deploy
replicasets = rs
statefulsets = sts
horizontalpodautoscalers = hpa
cronjobs = cj
certificiaterequests = cr, crs
certificates = cert, certs
certificatesigningrequests = csr
ingresses = ing
networkpolicies = netpol
podsecuritypolicies = psp
replicasets = rs
scheduledscalers = ss
priorityclasses = pc
storageclasses = sc

相关问题