7. 加载环境变量 vi ~/.bashrc export PATH="${KREW_ROOT:-$HOME/.krew}/bin:$PATH"
source ~/.bashrc
8. 验证 [root@i-u3hl7a5j ~]# kubectl krew -h krew is the kubectl plugin manager. You can invoke krew through kubectl: "kubectl krew [command]..."
Usage: kubectl krew [command]
Available Commands: completion generate the autocompletion script for the specified shell help Help about any command index Manage custom plugin indexes info Show information about an available plugin install Install kubectl plugins list List installed kubectl plugins search Discover kubectl plugins uninstall Uninstall plugins update Update the local copy of the plugin index upgrade Upgrade installed plugins to newer versions version Show krew version and diagnostics