From 83b8c4a7cc51be189fd30bba61a8d9b4e4a7f7a8 Mon Sep 17 00:00:00 2001 From: "Dustin C. Hatch" Date: Mon, 13 Nov 2023 19:49:32 -0600 Subject: [PATCH] userdata: Set kubelet config path The default configuration for the *kubelet.service* unit does not specify the path to the `config.yml` generated by `kubeadm`. Thus, any settings defined in the `kublet-config` ConfigMap do not take effect. To resolve this, we have to explicitly set the path in the `config` property of the `kubeletExtraArgs` object in the join configuration. --- terraform/userdata.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/terraform/userdata.yml b/terraform/userdata.yml index 5d609fb..446b84d 100644 --- a/terraform/userdata.yml +++ b/terraform/userdata.yml @@ -69,6 +69,7 @@ write_files: kubeletExtraArgs: provider-id: aws:///${az}/${instance_id} node-ip: ${internal_ip} + config: /var/lib/kubelet/config.yaml discovery: file: kubeConfigPath: ${BASE_URL}/kubeadm/kubeconfig/${instance_id}