This PR adds a cluster-dns.sh script that executes before the kubelet service is started. The script writes the cluster DNS servers into the kubelet config file.
This is a necessary change before migrating to Kubernetes 1.19. Prior to 1.19, the cluster DNS servers are configured using the --cluster-dns flag. This flag is now deprecated and the servers need to be configured through the kubelet config file.
Description
This PR adds a
cluster-dns.sh
script that executes before the kubelet service is started. The script writes the cluster DNS servers into the kubelet config file.This is a necessary change before migrating to Kubernetes 1.19. Prior to 1.19, the cluster DNS servers are configured using the
--cluster-dns
flag. This flag is now deprecated and the servers need to be configured through the kubelet config file.