You can specify annotations in a YAML file to implement capabilities of supernodes, 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 supernodes will adopt this DNS configuration by default. |
No |
The example of a custom DNS configuration for a supernodes 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
Was this page helpful?