Release Notes
Announcements
Release Notes
ConfigMaps in the K8s cluster as the Volume of a worker node, watches the changes of the config file via inotify (inode notify) of Linux OS, and updates the /etc/hosts file of the worker node accordingly.
As we need to edit the /etc/hosts file of the worker node, Daemonset workload is usually used for deployment, and it should be run on each node that you need to update hosts. To allow the DaemonSet workload runs on nodes in the cluster as many as possible, the following tolerations are set in the YAML file of the DaemonSet: tolerations:- key: node-role.kubernetes.io/mastereffect: NoSchedule- key: node.kubernetes.io/disk-pressureeffect: NoSchedule- key: node.kubernetes.io/memory-pressureeffect: NoSchedule- key: node.kubernetes.io/network-unavailableeffect: NoSchedule- key: node.kubernetes.io/not-readyeffect: NoExecute- key: node.kubernetes.io/pid-pressureeffect: NoSchedule- key: node.kubernetes.io/unreachableeffect: NoExecute- key: node.kubernetes.io/unschedulableeffect: NoSchedule
ConfigMaps resource named updater-config under Namespace of Host Updater (e.g. kube-system), and then create DaemonSet.updater-config. See below for examples: apiVersion: v1kind: ConfigMapmetadata:name: updater-confignamespace: kube-systemdata:hosts.yaml: |- domain: demo.tencentcloudcr.comip: 10.0.0.2disabled: false- domain: vpc-demo.tencentcloudcr.comip: 10.0.0.2disabled: false
Was this page helpful?
You can also Contact sales or Submit a Ticket for help.
Help us improve! Rate your documentation experience in 5 mins.
Feedback