当前位置:网站首页>[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 .
边栏推荐
- Hardware security threats of cloud infrastructure
- Openinstall joins hands with the book chain to help channel data analysis and create the era of Book Networking
- Universal file online preview project, open source!
- 证券账户理财安全吗??
- 缓存使用中Redis,Memcached的共性和差异分析
- When installing Wireshark, npcap cannot be installed successfully. It is recommended to use WinPcap first
- 手机注册股票开户 炒股开户安全吗
- Restoring to an earlier version in CVS
- Allwinner a40i industrial Internet gateway design scheme, smart site, smart city core gateway
- An accident caused by a MySQL misoperation, and the "high availability" cannot withstand it!
猜你喜欢

How to generate assembly code using clang in Intel syntax- How to generate assembly code with clang in Intel syntax?

A brief introduction to the lexical analysis of PostgreSQL

Do you really know the difference between H5 and applet?

Linux Installation cenos7 MySQL - 8.0.26

Application of motion capture system in positioning and mapping of mobile robot in underground tunnel
Step by step introduction to sqlsugar based development framework (9) -- Realizing field permission control with WinForm control

Stm32f1 and stm32cubeide programming examples -ws2812b full color LED driver (based on spi+dma)

As a developer, what is the most influential book for you?

入行 4 年,跳槽 2 次,我摸透了软件测试这一行

Keyword of ES mapping; Term query add keyword query; Change mapping keyword type
随机推荐
实战 | 记一次曲折的钓鱼溯源反制
Bert whitening vector dimension reduction and its application
熬夜整理出的软件测试【高频】面试题大全(2022最新)
Universal file online preview project, open source!
When installing Wireshark, npcap cannot be installed successfully. It is recommended to use WinPcap first
How about stock online account opening and account opening process? Is it safe to open an account online?
Wide measuring range of jishili electrometer
Typescript raw data type
How to build a high-performance go cache Library
Who do you want to open a stock account? Is online account opening safe?
Do you really know the difference between H5 and applet?
How do individuals open accounts for stock speculation? Is it safe to open accounts for stock speculation
【Kubernetes】1
Is it safe for futures companies to open accounts
[log service CLS] a taste of Tencent cloud log service CLS
Which securities company is better and safer for great wisdom to choose when opening an account
Istio practical skill: enable accesslog locally
Port conflict handling method for tongweb
QTreeWidget作为单例模式以dll返回的两个问题
How to resolve the 35 year old crisis? Sharing of 20 years' technical experience of chief architect of Huawei cloud database