Windows11环境下Kubernetes—kubectl 插件管理器 Krew 安装
核心参考内容:
https://krew.sigs.k8s.io/docs/user-guide/setup/install/
题外话,具体回答见下方
krew 常用命令
每次启动的时候,都需要
1 |
|
1. Make sure git
is installed.
确保本机已经安装了 git 软件
2. Download krew.exe
from the Releases page to a directory.
在下面连接中下载 krew.exe 软件
https://github.com/kubernetes-sigs/krew/releases
2023年7月6日,Release v0.4.3 还未提供 exe 的软件, 所以只能下载 Release v0.4.2版本下的相关软件
- Launch a command prompt (
cmd.exe
) with administrator privileges (since the installation requires use of symbolic links) and navigate to that directory.
通过管理员身份,进入 cmd 程序
进入到 krew.exe
下载到本地 所在目录
Run the following command to install krew:
1
.\krew install krew
在命令行中执行以上的命令
- Add the
%USERPROFILE%\.krew\bin
directory to yourPATH
environment variable (how?)
将 %USERPROFILE%\.krew\bin
添加到 环境变量中
- Launch a new command-line window.
开启一个新的命令行窗口。
- Run
kubectl krew
to check the installation.
Windows11环境下Kubernetes—kubectl 插件管理器 Krew 安装
http://yuanql.top/2023/07/06/43_kubernetes/Windows11环境下Kubernetes—kubectl 插件管理器 Krew 安装/