说明
krew安装
yum -y install git
(
set -x; cd "$(mktemp -d)" &&
OS="$(uname | tr '[:upper:]' '[:lower:]')" &&
ARCH="$(uname -m | sed -e 's/x86_64/amd64/' -e 's/\(arm\)\(64\)\?.*/\1\2/' -e 's/aarch64$/arm64/')" &&
KREW="krew-${OS}_${ARCH}" &&
curl -fsSLO "https://github.com/kubernetes-sigs/krew/releases/latest/download/${KREW}.tar.gz" &&
tar zxvf "${KREW}.tar.gz" &&
./"${KREW}" install krew
)
export PATH="${KREW_ROOT:-$HOME/.krew}/bin:$PATH"
krew快速开始
kubectl krew update
kubectl krew search
kubectl krew install xxxxx
kubectl krew uninstall xxxxx
插件推荐
kubectl -n test sniff website-7d7d96cdbf-6v4p6 -o test.pcap
kubectl -n test sniff website-7d7d96cdbf-6v4p6 -o -
kubectl -n test sniff website-7d7d96cdbf-6v4p6 -f "port 80"