Use machine ID and domain as kubelet hostname
@@ -12,8 +12,8 @@ KUBELET_ADDRESS="--address=0.0.0.0"
# The port for the info server to serve on
KUBELET_PORT="--port=10250"
-# You may leave this blank to use the actual hostname
-KUBELET_HOSTNAME=""
+# Use <machine_id>.<internal_infra_domain> matching the SSL certificates
+KUBELET_HOSTNAME="--hostname-override={{ grains['id'] }}.{{ pillar['internal_infra_domain'] }}"
# location of the api-server
KUBELET_API_SERVER="--api-servers={{ ','.join(kube_servers) }}"
