6

k8s本地联调神器kt-connect

 2 years ago
source link: https://www.bboy.app/2022/04/11/k8s%E6%9C%AC%E5%9C%B0%E8%81%94%E8%B0%83%E7%A5%9E%E5%99%A8kt-connect/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

k8s本地联调神器kt-connect

发表于 2022-04-11

更新于 2022-04-12

分类于

kubernetes

20220411-1.png

记得上次离职的时候有人问我一个问题,k8s集群内部的服务网络怎么和我们本地网络打通。kt-connect就是用来解决这个问题的

下载安装什么的都很简单,一个二进制而已

https://github.com/alibaba/kt-connect

如果你安装好了,那么直接使用下面的命令使用就好了

sudo ktctl connect

当然也可以指定配置文件

sudo ktctl --kubeconfig ~/.kube/local connect

执行完成之后,这个集群的所有svc都可以直接在本地解析,当然直接ping pod的ip也是可以的

东西还不错推荐

欢迎关注我的博客www.bboy.app

Have Fun


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK