# Dynamic Kubelet Configuration `sudo apt install -y jq` ``` NODE_NAME="worker-1"; NODE_NAME="worker-1"; curl -sSL "https://localhost:6443/api/v1/nodes/${NODE_NAME}/proxy/configz" -k --cert admin.crt --key admin.key | jq '.kubeletconfig|.kind="KubeletConfiguration"|.apiVersion="kubelet.config.k8s.io/v1beta1"' > kubelet_configz_${NODE_NAME} ``` ``` kubectl -n kube-system create configmap nodes-config --from-file=kubelet=kubelet_configz_${NODE_NAME} --append-hash -o yaml ``` Edit node to use the dynamically created configuration ``` kubectl edit worker-2 ``` Configure Kubelet Service Create the `kubelet.service` systemd unit file: ``` cat <