当前位置:网站首页>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
边栏推荐
- Wechat applet part of the mobile phone Preview PDF did not respond
- Partage de la conception de l'alimentation électrique de commutation et illustration des compétences en conception de l'alimentation électrique
- Quick start to static class variables
- OpenHarmony开源开发者成长计划,寻找改变世界的开源新生力!
- The most detailed network counting experiment in history (2) -- rip experiment of layer 3 switch
- Keysight has chosen what equipment to buy for you
- [report] Microsoft: application of deep learning methods in speech enhancement
- Lottery applet, mother no longer have to worry about who does the dishes (assign tasks), so easy
- White screen processing method of fulter startup page
- 2021-2022-2 ACM training team weekly Programming Competition (8) problem solution
猜你喜欢

ArcMap connecting ArcGIS Server

Zero base to build profit taking away CPS platform official account

Android Development: the client obtains the latest value in the database in real time and displays it on the interface

Lottery applet, mother no longer have to worry about who does the dishes (assign tasks), so easy

An algorithm problem was encountered during the interview_ Find the mirrored word pairs in the dictionary

NiO related Basics

Pdf reference learning notes
![[transfer] summary of new features of js-es6 (one picture)](/img/45/76dba32e4fa7ed44a42e5f98ea8207.jpg)
[transfer] summary of new features of js-es6 (one picture)

Using oes texture + glsurfaceview + JNI to realize player picture processing based on OpenGL es

Redis optimization series (III) solve common problems after master-slave configuration
随机推荐
Is it safe to open an account in Bohai futures.
5 minutes to achieve wechat cloud applet payment function (including source code)
Openlayers 5.0 two centering methods
The difference between ordinary inner class and static inner class
2021-2022-2 ACM集训队每周程序设计竞赛(8)题解
openlayers 5.0 离散聚合点
RuntimeError: Providing a bool or integral fill value without setting the optional `dtype` or `out`
openlayers 5.0 当地图容器大小改变时,重新加载地图
[report] Microsoft: application of deep learning methods in speech enhancement
Openlayers 5.0 loading ArcGIS Server slice service
The platinum library cannot search the debug process records of some projection devices
Solve the problem of invalid listview Click
Web Security
UML类图几种关系的总结
redis优化系列(三)解决主从配置后的常见问题
I just want to leave a note for myself
Build intelligent garbage classification applet based on Zero
SQL Server database in clause and exists clause conversion
Zero cost, zero foundation, build profitable film and television applet
SSDB foundation 1
