1、下载

网址:Install | TelepresenceInstall Install Telepresence by running the commands below for your OS. If you are not the administrator of your cluster, you will need administrati…https://www.telepresence.io/docs/latest/install/

2、解压

3、执行命令 以管理员身份运行

      在powershell或者命令提示符中二选一(必须以管理员身份打开)

 

(1)右击以管理员身份打开

(2)执行 .\install-telepresence.ps1

正常情况:

 

 若报如下错误:

 则需:

执行  set-executionpolicy remotesigned 开启权限即可

 

(3)重新打开powershell 或命令提示符 

(4)执行telepresence.exe,可以查看相关命令参数 

在解压后的文件夹目录的位置输入cmd,然后回车,进入当前目录后执行命令

 (5)查看版本 telepresence version

(6)连接 

telepresence connect --mapped-namespaces 名字

(7)执行kubectl   执行此步骤需要先下载docker

注:①--namespace 和-n 作用相同 

       ②kubectl get pods 只显示默认命名空间的pods

 

 (8)查看状态  telepresence status

(9)退出  telepresence quit