Help & Documentation>Tencent Kubernetes Engine

Serverless Cluster Global Configuration Description

Last updated: 2023-09-26 16:11:20

Scenario

TKE Serverless clusters support global configuration through ConfigMap. In scenarios with TKE super nodes and pure TKE Serverless clusters, if users need to set annotations in bulk for each super node or Pod, configuring at the super node or Pod level can be relatively cumbersome and intrusive to the business YAML. Therefore, TKE Serverless clusters provide the ability for global configuration, allowing users to inject annotations into each Pod within the cluster using ConfigMap.

Instructions

1. Create the eks-config ConfigMap under kube-system.
2. Enter the appropriate parameter settings to make them effective for all Pods in the TKE Serverless cluster. The global configuration reference is as follows:
apiVersion: v1
kind: ConfigMap
metadata:
name: eks-config
namespace: kube-system
data:
pod.annotations: |
eks.tke.cloud.tencent.com/resolv-conf: |
nameserver 183.60.83.19
eks.tke.cloud.tencent.com/host-sysctls: '[{"name": "net.core.rmem_max","value": "26214400"}]'

Configuration Priority Description

The global configuration has the lowest priority, next is the configuration at the super node level, and the Pod configuration has the highest priority. If configurations conflict, the one with the higher priority will take effect.