Virtual Node Annotation Description

Last updated: 2021-11-12 15:03:11

You can specify annotations in a YAML file to implement capabilities of virtual nodes, such as custom DNS, as shown below:

Annotation Key Annotation Value and Description Required
eks.tke.cloud.tencent.com/resolv-conf Queries the list of IP addresses for the DNS server while resolving the domain name, for example nameserver 8.8.8.8.
You can use kubectl edit node eklet-subnet-xxxx to add this annotation.
After the modification, the Pods scheduled to this virtual node will adopt this DNS configuration by default.
No

Example

The example of a custom DNS configuration for a virtual node is as follows:

apiVersion: v1
kind: Node
metadata:
annotations:
  eks.tke.cloud.tencent.com/resolv-conf:|
    nameserver 4.4.4.4
    nameserver 8.8.8.8