当前位置:网站首页>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
边栏推荐
- SSDB Foundation
- Pit encountered using camera x_ When onpause, the camera is not released, resulting in a black screen when it comes back
- 8266 obtain 18b20 temperature
- The flyer realizes page Jump through routing routes
- SQL server requires to query the information of all employees with surname 'Wang'
- 数据分析学习目录
- Quick start to static class variables
- Switching power supply design sharing and power supply design skills diagram
- static类变量快速入门
- MySQL syntax collation
猜你喜欢
深度学习——特征工程小总结
binlog2sql 工具安装使用及问题汇总
ArcMap连接 arcgis server
No, some people can't do the National Day avatar applet (you can open the traffic master and earn pocket money)
Decompile and get the source code of any wechat applet - just read this (latest)
Zero cost, zero foundation, build profitable film and television applet
ArcMap publishing slicing service
[记录]TypeError: this.getOptions is not a function
Build intelligent garbage classification applet based on Zero
An algorithm problem was encountered during the interview_ Find the mirrored word pairs in the dictionary
随机推荐
One stop service platform for high-level talents and development of comprehensive service platform system for talents
Build intelligent garbage classification applet based on Zero
SSDB基础
Wechat video extraction and receiving file path
openlayers draw矩形
[报告] Microsoft :Application of deep learning methods in speech enhancement
MySQL syntax collation (5) -- functions, stored procedures and triggers
MySQL practical skills
Openlayers 5.0 two centering methods
Machine learning catalog
The usage of slice and the difference between slice and array
C1000k TCP connection upper limit test
[play with lighthouse] Tencent cloud lightweight server builds a full platform video analysis video download website
Use of fluent custom fonts and pictures
点云数据集常用处理
The flyer realizes page Jump through routing routes
考试系统进入试卷优化思路
NiO related Basics
Steps to build a deep learning environment GPU
Convert string to JSON