gravitational / planet

Installable Kubernetes delivered in containers
Apache License 2.0
51 stars 18 forks source link

Add cluster-dns script #824

Closed bernardjkim closed 3 years ago

bernardjkim commented 3 years ago

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.