当前位置:网站首页>Kubernetes入门到精通-KtConnect(全称Kubernetes Toolkit Connect)是一款基于Kubernetes环境用于提高本地测试联调效率的小工具。
Kubernetes入门到精通-KtConnect(全称Kubernetes Toolkit Connect)是一款基于Kubernetes环境用于提高本地测试联调效率的小工具。
2022-04-23 19:23:00 【隔壁老瓦】
快速开始
KtConnect提供了本地和测试环境集群的双向互联能力。在这篇文档里,我们将使用一个简单的示例,来快速演示通过KtConnect完成本地直接访问集群中的服务、以及将集群中指定服务的请求转发到本地的过程。
部署实例应用
为了便于展示结果,首先在集群中部署一个Tomcat服务并创建一个默认首页:
$ kubectl create deployment tomcat --image=tomcat:9 --port=8080 deployment.apps/tomcat created $ kubectl expose deployment tomcat --port=8080 --target-port=8080 service/tomcat exposed $ kubectl exec deployment/tomcat -c tomcat -- /bin/bash -c 'mkdir webapps/ROOT; echo "kt-connect demo v1" > webapps/ROOT/index.html'
查询Pod和服务的IP地址:
$ kubectl get pod -o wide --selector app=tomcat NAME READY STATUS RESTARTS AGE IP ... tomca
版权声明
本文为[隔壁老瓦]所创,转载请带上原文链接,感谢
https://blog.csdn.net/wxb880114/article/details/124351290
边栏推荐
- 什么是消息队列
- SQL server requires to query the information of all employees with surname 'Wang'
- [report] Microsoft: application of deep learning methods in speech enhancement
- Speculation on the way to realize the smooth drag preview of video editing software
- Is it safe to open an account in Bohai futures.
- FTP、ssh远程访问及控制
- JVM的类加载过程
- JS to get the local IP address
- 8266 obtain 18b20 temperature
- The fifth bullet of MySQL learning -- detailed explanation of transaction and its operation characteristics
猜你喜欢
Oracle configuration st_ geometry
Redis optimization series (III) solve common problems after master-slave configuration
Zero base to build profit taking away CPS platform official account
JVM的类加载过程
The difference between ordinary inner class and static inner class
Oracle配置st_geometry
[记录]TypeError: this.getOptions is not a function
Build intelligent garbage classification applet based on Zero
Android Development: the client obtains the latest value in the database in real time and displays it on the interface
Zero cost, zero foundation, build profitable film and television applet
随机推荐
Quick start to static class variables
Codeworks round 783 (Div. 2) d problem solution
开关电源设计分享及电源设计技巧图解
Is meituan, a profit-making company with zero foundation, hungry? Coupon CPS applet (with source code)
js 计算时间差
ArcMap连接 arcgis server
Openharmony open source developer growth plan, looking for new open source forces that change the world!
点云数据集常用处理
arcMap 发布切片服务
Zero base to build profit taking away CPS platform official account
PostgreSQL
[报告] Microsoft :Application of deep learning methods in speech enhancement
openlayers 5.0 加载arcgis server 切片服务
Go recursively loops through folders
【玩转Lighthouse】腾讯云轻量服务器搭建全平台视频解析视频下载网站
Installation, use and problem summary of binlog2sql tool
The flyer realizes page Jump through routing routes
Some speculation about the decline of adults' language learning ability
OpenHarmony开源开发者成长计划,寻找改变世界的开源新生力!
FTP、ssh远程访问及控制