https://blog.csdn.net/qq_33745102/article/details/119800751
-下载安装kubectl ,进入网页
https://kubernetes.io/docs/tasks/tools/install-kubectl-windows/#verify-kubectl-configuration
下载连接:
https://storage.googleapis.com/kubernetes-release/release/v1.23.0/bin/windows/amd64/kubectl.exe
- 执行kubectl.exe文件
start kubectl.exe
添加环境变量:将kubectl.exe文件放入C:\Program Files\Java文件夹下,然后将C:\Program Files\Java路径添加到path
- 验证
kubectl version --client
- 下载文件,放到用户目录下
- 将linux ~/.kube/config文件拷贝到C:\Users\Administrator.kube\config
curl -fL https://app.getambassador.io/download/tel2/windows/amd64/latest/telepresence.zip -o telepresence.zip
cd telepresence
.\install-telepresence.ps1
- 也需要配置环境变量
-
k8环境多一个po
image.png - 验证测试 telnet podIp 3306
telnet 10.244.82.129 3306
网友评论