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: v1kind: ConfigMapmetadata:name: eks-confignamespace: kube-systemdata:pod.annotations: |eks.tke.cloud.tencent.com/resolv-conf: |nameserver 183.60.83.19eks.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.