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
You can use
After the modification, the Pods scheduled to this virtual node will adopt this DNS configuration by default.
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 126.96.36.199 nameserver 188.8.131.52