Files
configpolicy/roles/kubelet/handlers/main.yml
Dustin C. Hatch 15cb675297 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.
2024-12-07 09:35:57 -06:00

17 lines
262 B
YAML

- name: load kernel modules
command:
/usr/lib/systemd/systemd-modules-load
- name: set kernel tunables
command:
sysctl --system
- name: swapoff -a
command:
swapoff -a
- name: restart kubelet
service:
name: kubelet
state: restarted