对于kubectl describe,我可以缩写几类资源,例如:
kubectl describe
po/xxx -> pods/xxx rs/xxx -> replicasets/xxx
我在哪里可以找到完整的列表?我在找部署的缩写。
mwkjh3gx1#
要获取资源的完整列表(包括其 * 简称 *),请用途:
kubectl api-resources
例如,部署的简称为deploy。kubectl api-resources的输出示例:
deploy
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 ...
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
2条答案
按热度按时间mwkjh3gx1#
要获取资源的完整列表(包括其 * 简称 *),请用途:
例如,部署的简称为
deploy
。kubectl api-resources
的输出示例:jucafojl2#