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 EIP to Access Public Network

PDF
Focus Mode
Font Size
Last updated: 2023-03-14 18:19:11
Currently, TKE Serverless allows you to bind an EIP to a Pod simply by declaring it in the template annotations. For more information, see Annotation.
Annotations related to EIP are described as follows:
Annotation Key
Annotation Value and Description
Required
eks.tke.cloud.tencent.com/eip-attributes
It indicates that the workload's Pod needs to be bound to an EIP. If the value is "", the binding will be created with the default EIP configuration. You can enter the EIP's TencentCloud API parameter JSON string in "" to customize the configuration.
Yes if you want to bind an EIP
eks.tke.cloud.tencent.com/eip-claim-delete-policy
It indicates whether to repossess the EIP after the Pod is deleted. Never indicates not to repossess. The default value is to repossess.
No
eks.tke.cloud.tencent.com/eip-id-list
It indicates that an existing EIP will be used, and only StatefulSets are supported. After the Pod is terminated, its EIP will not be repossessed by default. Note that the number of StatefulSet Pods cannot exceed the number of eipId values specified in this annotation.
No
1. If you want to bind an EIP to a workload or Pod for public network access, the simplest way is to add the eks.tke.cloud.tencent.com/eip-attributes: "" flag under the annotation of the corresponding workload or Pod as follows:
metadata:
name: tf-cnn
annotations:
eks.tke.cloud.tencent.com/eip-attributes: "" # EIP is required, and all are the default configuration

2. Run the following command to view the relevant events:
kubectl describe pod [name]
You can see that there are two new events related to the EIP as shown below, which indicate a success.

3. View the log file, and you can see that the datasets can be downloaded normally as shown below:

Note
The daily number of EIPs that can be applied for is limited, so EIP is not suitable for tasks that need to run multiple times every day.


Help and Support

Was this page helpful?

Help us improve! Rate your documentation experience in 5 mins.

Feedback