Skip to main content

krew

# 安装
(
set -x; cd "$(mktemp -d)" &&
curl -fsSLO "https://github.com/kubernetes-sigs/krew/releases/latest/download/krew.{tar.gz,yaml}" &&
tar zxvf krew.tar.gz &&
KREW=./krew-"$(uname | tr '[:upper:]' '[:lower:]')_amd64" &&
"$KREW" install --manifest=krew.yaml --archive=krew.tar.gz &&
"$KREW" update
)

# 默认目录 ~/.krew/bin/
export PATH="${KREW_ROOT:-$HOME/.krew}/bin:$PATH"

kubectl krew update
kubectl krew search whoami
kubectl krew install whoami

kubectl whoami
kubectl krew upgrade

# 服务管理
kubectl krew install ingress-nginx
plugindesc
access-matrix权限检查
cert-manager
ctx ns上下文和空间切换 - 类似 kubectx
doctor扫描集群异常
konfig合并或分割配置
oidc-login
outdated
popeye扫描集群资源问题
rbac-lookup rbac-view
sniffStart a remote packet capture on pods using tcpdump and wireshark
tailmultiple pods and containers using simple, dynamic source selection.
tree查看资源层级
view-secret