因為kubectl describe我可以縮寫幾類資源,例如:
po/xxx -> pods/xxx
rs/xxx -> replicasets/xxx
在哪里可以找到完整串列?
我正在嘗試查找部署的縮寫。
uj5u.com熱心網友回復:
要獲取您的資源的完整串列,包括它們的shortname,請使用:
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
...
轉載請註明出處,本文鏈接:https://www.uj5u.com/caozuo/485730.html
