当前位置:网站首页>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
边栏推荐
- Keysight has chosen what equipment to buy for you
- Decompile and get the source code of any wechat applet - just read this (latest)
- Prefer composition to inheritance
- Garbage collector and memory allocation strategy
- SSDB foundation 1
- Is meituan, a profit-making company with zero foundation, hungry? Coupon CPS applet (with source code)
- 机器学习目录
- JVM的类加载过程
- Customize the non slidable viewpage and how to use it
- Why is PostgreSQL about to surpass SQL Server?
猜你喜欢

深度学习——特征工程小总结

Application of DCT transform

OpenHarmony开源开发者成长计划,寻找改变世界的开源新生力!

Oracle配置st_geometry

Decompile and get the source code of any wechat applet - just read this (latest)

White screen processing method of fulter startup page

Some records used by VS2010

Installation, use and problem summary of binlog2sql tool

Use of fluent custom fonts and pictures

Lottery applet, mother no longer have to worry about who does the dishes (assign tasks), so easy
随机推荐
网络协议之:sctp流控制传输协议
Installation, use and problem summary of binlog2sql tool
openlayers 5.0 两种居中方式
Openlayers 5.0 discrete aggregation points
Openlayers 5.0 two centering methods
Why is PostgreSQL about to surpass SQL Server?
开关电源设计分享及电源设计技巧图解
Easy mock local deployment (you need to experience three times in a crowded time. Li Zao will do the same as me. Love is like a festival mock)
redis优化系列(三)解决主从配置后的常见问题
JVM的类加载过程
Zero cost, zero foundation, build profitable film and television applet
Oracle配置st_geometry
MySQL syntax collation (5) -- functions, stored procedures and triggers
深度学习环境搭建步骤—gpu
On the forced conversion of C language pointer
Intuitive understanding of the essence of two-dimensional rotation
坐标转换WGS-84 转 GCJ-02 和 GCJ-02转WGS-84
Android Development: the client obtains the latest value in the database in real time and displays it on the interface
Common SQL commands
I just want to leave a note for myself
