查找插件
您可以 在此处 找到通过 Krew 分发的 kubectl
插件列表。但是,您也可以使用命令行查找插件。
搜索可用插件
首先,刷新插件索引的本地副本
$ kubectl krew update
要列出所有可用的插件,请运行
$ kubectl krew search
NAME DESCRIPTION INSTALLED
access-matrix Show an RBAC access matrix for server resources no
advise-psp Suggests PodSecurityPolicies for cluster. no
auth-proxy Authentication proxy to a pod or service no
bulk-action Do bulk actions on Kubernetes resources. no
ca-cert Print the PEM CA certificate of the current clu... no
...
您可以指定搜索关键字作为参数
$ kubectl krew search pod
NAME DESCRIPTION INSTALLED
evict-pod Evicts the given pod no
pod-dive Shows a pod's workload tree and info inside a node no
pod-logs Display a list of pods to get logs from no
pod-shell Display a list of pods to execute a shell in no
rm-standalone-pods Remove all pods without owner references no
support-bundle Creates support bundles for off-cluster analysis no
了解有关插件的更多信息
要获取有关插件的更多信息,请运行 kubectl krew info <插件>
$ kubectl krew info tree
NAME: tree
VERSION: v0.4.0
DESCRIPTION:
This plugin shows sub-resources of a specified Kubernetes API object in a
tree view in the command-line. The parent-child relationship is discovered
using ownerReferences on the child object.
...