当前位置:网站首页>[tke] multiple ingress controllers are used in the cluster
[tke] multiple ingress controllers are used in the cluster
2022-06-24 15:34:00 【jokey】
background
TKE The service in the cluster is enabled by default based on Tencent cloud load balancer Ingress, Support HTTP、HTTPS, At the same time, it also supports the self establishment of others in the cluster Ingress controller , You can choose different... According to your business needs Ingress type , For example, common Nginx Ingress controller .
Installation mode
Mode one : adopt TKE Product oriented Nginx ingress Component installation , Details refer to :TKE Nginx Ingress
Mode two : adopt TKE Console 【 Application market 】 install Nginx Ingress , Application market installation instructions reference :TKE Application market
Mode three : Use through official website documents helm install Nginx Ingress, Details refer to :Helm install Nginx Ingress
Use configuration
The following will be introduced in TKE Two commonly used in Ingress The use of types and multiple Ingress How controllers work together .
Based on Tencent cloud CLB Of Ingress
TKE The default service is based on Tencent cloud CLB Of Ingress function , Users can directly on the console 【 Services and routing 】 Of 【Ingress】 Expose seven layers of services as needed , It can also be applied Ingress YAML Resources to create configurations , be based on CLB Of Ingress The controller management logic is as follows :
- When Ingress The resource does not have a description annotation
kubernetes.io/ingress.classwhen ,TKE Ingress ControllerWill manage the current Ingress resources . - When Ingress Resources are annotated
kubernetes.io/ingress.classAnd the value isqcloudwhen ,TKE Ingress ControllerWill manage the current Ingress resources .
Detailed configuration reference :TKE Ingress Controller Usage method .
Nginx Ingress
Nginx Ingress The controller is started by specifying --ingress-class=<INGRESS_CONTROLLER_NAME>
Parameter to declare what you listen to Ingress Configure class scope , The default is nginx ,Nginx Ingress An example of a controller specifying a class name is as follows :
...
spec:
template:
spec:
containers:
- name: nginx-ingress-internal-controller
args:
- /nginx-ingress-controller
- '--ingress-class=<INGRESS_CONTROLLER_NAME>'
... When there is Ingress There are annotations in the resource configuration kubernetes.io/ingress.class: "<INGRESS_CONTROLLER_NAME>" Will be monitored and used by the controller , Its Ingress An example of resource configuration is as follows :
...
metadata:
name: foo
annotations:
kubernetes.io/ingress.class: "<INGRESS_CONTROLLER_NAME>"
...Multiple Ingress The controller is used together
According to the above use and configuration instructions , Suggest all Ingress Resources are configured with annotations to distinguish between different Ingress Range of action of the controller , When you want to use based on CLB Of Ingress when , Configuration comments kubernetes.io/ingress.class:"qcloud" , When you want to use Nginx ingress Controller configuration annotation kubernetes.io/ingress.class:"<INGRESS_CONTROLLER_NAME>"( Don't talk to people based on CLB Ingress Conflict ) that will do .
边栏推荐
- I have been in the industry for 4 years and have changed jobs twice. I have learned a lot about software testing
- Redis consistency hash and hash slot
- 熬夜整理出的软件测试【高频】面试题大全(2022最新)
- Unimelb COMP20008 Note 2019 SM1 - Data formats
- The future of robots -- deep space exploration
- Record the range of data that MySQL update will lock
- As a developer, what is the most influential book for you?
- Very exciting! 12000 words summarized the theory of network technology, reviewing the old and learning the new
- How to allow easydss online classroom system to upload an on-demand file with a space in the file name?
- [log service CLS] initial experience of Tencent cloud CLS log service
猜你喜欢

A common defect management tool - Zen, which teaches you from installation to using the handle

List of PostgreSQL

From pair to unordered_ Map, theory +leetcode topic practice

Keyword of ES mapping; Term query add keyword query; Change mapping keyword type

CVPR 2022 - Interpretation of selected papers of meituan technical team

动作捕捉系统用于地下隧道移动机器人定位与建图

Brief discussion on the implementation framework of enterprise power Bi CI /cd

leetcode. 12 --- integer to Roman numeral

Linux Installation cenos7 MySQL - 8.0.26
Record the range of data that MySQL update will lock
随机推荐
leetcode 139. Word break word split (medium)
CVPR2022 | 可精简域适应
Is it safe to open an account for flush stock on mobile phone!
Ethical considerations
常见的缺陷管理工具——禅道,从安装到使用手把手教会你
Cloud + community [play with Tencent cloud] essay solicitation activity winners announced
Keyword of ES mapping; Term query add keyword query; Change mapping keyword type
Step by step introduction to sqlsugar based development framework (9) -- Realizing field permission control with WinForm control
Task priority motion planning of floating base
A simple and powerful developer toolkit box3 cc
Two way combination of business and technology to build a bank data security management system
R语言实战应用精讲50篇(二十三)-贝叶斯理论重要概念: 可信度Credibility, 模型Models, 和参数Parameters
How to modify the login user name of easynvr video monitoring system?
The future of robots -- deep space exploration
How to resolve the 35 year old crisis? Sharing of 20 years' technical experience of chief architect of Huawei cloud database
Teach you how to view version information with mongodb
Cvpr2022 | domaine compact adaptable
[bitbear story collection] June MVP hero story | technology practice collision realm thinking
Huangchuping presided over the video conference on fixed-point contact with Zhuhai, resolutely implemented the deployment requirements of the provincial Party committee, and ensured positive results i
How to allow easydss online classroom system to upload an on-demand file with a space in the file name?