当前位置:网站首页>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
边栏推荐
- The flyer realizes page Jump through routing routes
- Installation, use and problem summary of binlog2sql tool
- Use of fluent custom fonts and pictures
- Strange passion
- c1000k TCP 连接上限测试1
- Class loading mechanism
- C1000k TCP connection upper limit test
- 为何PostgreSQL即将超越SQL Server?
- Openlayers 5.0 discrete aggregation points
- 开关电源设计分享及电源设计技巧图解
猜你喜欢
Some records used by VS2010
OpenHarmony开源开发者成长计划,寻找改变世界的开源新生力!
Garbage collector and memory allocation strategy
Matlab 2019 installation of deep learning toolbox model for googlenet network
Pdf reference learning notes
[transfer] summary of new features of js-es6 (one picture)
OpenHarmony开源开发者成长计划,寻找改变世界的开源新生力!
MySQL lock
[报告] Microsoft :Application of deep learning methods in speech enhancement
NiO related Basics
随机推荐
Circuit on-line simulation
Some ideas about time-consuming needs assessment
浅谈c语言指针的强制转换
Problems caused by flutter initialroute and home
[play with lighthouse] Tencent cloud lightweight server builds a full platform video analysis video download website
Decompile and get the source code of any wechat applet - just read this (latest)
How to uninstall easyton
Zero cost, zero foundation, build profitable film and television applet
机器学习目录
openlayers 5.0 两种居中方式
SQL Server database in clause and exists clause conversion
Openlayers 5.0 two centering methods
Pit encountered using camera x_ When onpause, the camera is not released, resulting in a black screen when it comes back
高层次人才一站式服务平台开发 人才综合服务平台系统
Is meituan, a profit-making company with zero foundation, hungry? Coupon CPS applet (with source code)
All table queries and comment description queries of SQL Server
2021-2022-2 ACM training team weekly Programming Competition (8) problem solution
The usage of slice and the difference between slice and array
Wechat video extraction and receiving file path
Solve the problem of invalid listview Click