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.
master
Dustin 2023-11-13 19:49:32 -06:00
parent c4cabfcdbc
commit 83b8c4a7cc
1 changed files with 1 additions and 0 deletions

View File

@ -69,6 +69,7 @@ write_files:
kubeletExtraArgs: kubeletExtraArgs:
provider-id: aws:///${az}/${instance_id} provider-id: aws:///${az}/${instance_id}
node-ip: ${internal_ip} node-ip: ${internal_ip}
config: /var/lib/kubelet/config.yaml
discovery: discovery:
file: file:
kubeConfigPath: ${BASE_URL}/kubeadm/kubeconfig/${instance_id} kubeConfigPath: ${BASE_URL}/kubeadm/kubeconfig/${instance_id}