r/kubelet: Pass --config arg to service

The systemd unit configuration installed by Fedora's _kubeadm_ package
does not pass the `--config` argument to the kubelet service.  Without
this argument, the kubelet will not read the configuration file
generated by `kubeadm` from the `kubelet-config` ConfigMap.  Thus,
various features will not work correctly, including server TLS
bootstrap.
This commit is contained in:
2024-12-07 09:35:57 -06:00
parent d2e8b9237f
commit 15cb675297
3 changed files with 29 additions and 0 deletions

View File

@@ -9,3 +9,8 @@
- name: swapoff -a
command:
swapoff -a
- name: restart kubelet
service:
name: kubelet
state: restarted