tencent cloud

Tencent Kubernetes Engine

Release Notes and Announcements
Release Notes
Announcements
Release Notes
Product Introduction
Overview
Strengths
Architecture
Scenarios
Features
Concepts
Native Kubernetes Terms
Common High-Risk Operations
Regions and Availability Zones
Service Regions and Service Providers
Open Source Components
Purchase Guide
Purchase Instructions
Purchase a TKE General Cluster
Purchasing Native Nodes
Purchasing a Super Node
Getting Started
Beginner’s Guide
Quickly Creating a Standard Cluster
Examples
Container Application Deployment Check List
Cluster Configuration
General Cluster Overview
Cluster Management
Network Management
Storage Management
Node Management
GPU Resource Management
Remote Terminals
Application Configuration
Workload Management
Service and Configuration Management
Component and Application Management
Auto Scaling
Container Login Methods
Observability Configuration
Ops Observability
Cost Insights and Optimization
Scheduler Configuration
Scheduling Component Overview
Resource Utilization Optimization Scheduling
Business Priority Assurance Scheduling
QoS Awareness Scheduling
Security and Stability
TKE Security Group Settings
Identity Authentication and Authorization
Application Security
Multi-cluster Management
Planned Upgrade
Backup Center
Cloud Native Service Guide
Cloud Service for etcd
TMP
TKE Serverless Cluster Guide
TKE Registered Cluster Guide
Use Cases
Cluster
Serverless Cluster
Scheduling
Security
Service Deployment
Network
Release
Logs
Monitoring
OPS
Terraform
DevOps
Auto Scaling
Containerization
Microservice
Cost Management
Hybrid Cloud
AI
Troubleshooting
Disk Full
High Workload
Memory Fragmentation
Cluster DNS Troubleshooting
Cluster kube-proxy Troubleshooting
Cluster API Server Inaccessibility Troubleshooting
Service and Ingress Inaccessibility Troubleshooting
Common Service & Ingress Errors and Solutions
Engel Ingres appears in Connechtin Reverside
CLB Ingress Creation Error
Troubleshooting for Pod Network Inaccessibility
Pod Status Exception and Handling
Authorizing Tencent Cloud OPS Team for Troubleshooting
CLB Loopback
API Documentation
History
Introduction
API Category
Making API Requests
Elastic Cluster APIs
Resource Reserved Coupon APIs
Cluster APIs
Third-party Node APIs
Relevant APIs for Addon
Network APIs
Node APIs
Node Pool APIs
TKE Edge Cluster APIs
Cloud Native Monitoring APIs
Scaling group APIs
Super Node APIs
Other APIs
Data Types
Error Codes
TKE API 2022-05-01
FAQs
TKE General Cluster
TKE Serverless Cluster
About OPS
Hidden Danger Handling
About Services
Image Repositories
About Remote Terminals
Event FAQs
Resource Management
Service Agreement
TKE Service Level Agreement
TKE Serverless Service Level Agreement
Contact Us
Glossary

Using NginxIngress Object to Access External Traffic of the Cluster

PDF
Mode fokus
Ukuran font
Terakhir diperbarui: 2025-06-20 10:16:07
Note:
The NginxIngress addon stopped updating. For details, see Discontinuing Update of NginxIngress Addon.

Prerequisites

You have logged in to the TKE console.
You have deployed NginxIngress Addon in the cluster.
You have installed and created the NginxIngress instance required for the business.

How to Use

Nginx-ingress usage on console

1. Log in to the TKE console and click Cluster in the left sidebar.
2. Click the cluster ID that has installed the Nginx-ingress addon to go to the cluster details page.
3. Select Services and Route > Ingress to go to the Ingress information page.
4. Click Create to go to the Create an Ingress page.
5. Set the Ingress parameters based on actual needs, as shown in the figure below:


Ingress type: select Nginx Ingress Controller.
Forwarding configuration: configure forwarding rules as needed.
6. Click Create Ingress.

Managing Nginx-ingress using Kubectl

Before importing the IngressClass resource and the ingressClassName field in Kubernetes, the Ingress class was specified by the kubernetes.io/ingress.class annotation in Ingress. Sample:
metadata:
name:
annotations:
kubernetes.io/ingress.class: "nginx-pulic". ## The corresponding Nginx-ingress instance name of the Nginx-ingress addon in the TKE cluster.

Relevant Operations

You can configure annotations for Nginx Ingress objects. For details, see Official Document.

Usage model of Nginx-ingress object

When multiple Ingress objects apply to one Nginx entity:
Sort the Ingress rules by the CreationTimestamp field, that is, the previous rules shall prevail.
If the same path is defined for the same host in multiple Ingresses, the most previous rules shall prevail.
If multiple Ingresses contain the TLS part of the same host, the most previous rules shall prevail.
If multiple Ingresses define an annotation that affects the configuration of the Server block, the most previous rules shall prevail.
Create NGINX Server based on each hostname.
If multiple Ingresses define different paths for the same host, the ingress-controller merges these definitions.
Multiple Ingresses can define different annotations. These definitions are not shared among Ingresses.
Ingress annotations will be applied to all paths in Ingress.

Triggering nginx.conf update mechanism

The following describes the situation where nginx.conf needs to be reloaded:
Create an Ingress object.
Add a new TLS for Ingress.
The modification of Ingress annotation not only affects the upstream configuration, but also has a greater impact. For example, the load-balance annotation does not need to be reloaded.
Add/delete paths for Ingress.
Delete Ingress and the Service and Secret of Ingress.
The status of the object associated with the Ingress is unknown, such as Service or Secret.
Update a Secret.

Bantuan dan Dukungan

Apakah halaman ini membantu?

masukan