mirror of https://github.com/k3s-io/k3s
Merge pull request #65702 from mborsz/reload
Automatic merge from submit-queue (batch tested with PRs 65094, 65533, 63522, 65694, 65702). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>. Reload systemd config files before starting kubelet. In some environments, the os image comes with preloaded kubelet.service, so we need to reload systemctl configs to make changes effective. **What this PR does / why we need it**: Some OS images already contains kubelet.service with preloaded kubelet in some random version. After doing changes to kubelet.service we need to call 'systemctl daemon-reload' to make changes effective. **Which issue(s) this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close the issue(s) when PR gets merged)*: Fixes # **Special notes for your reviewer**: **Release note**: ```release-note NONE ```pull/8/head
commit
a3d30dc939
|
@ -1170,6 +1170,7 @@ ExecStart=${kubelet_bin} \$KUBELET_OPTS
|
|||
WantedBy=multi-user.target
|
||||
EOF
|
||||
|
||||
systemctl daemon-reload
|
||||
systemctl start kubelet.service
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue