<p>I want to set up some stuff when starting Kubernetes node worker. Specifically, I change systemd service configuration and apply it (systemctl daemon-reload), but from inside the container, I don't know how to configure systemd of node worker</p>

Nguyễn Văn Dưng
<p>Not sure what you actually want to do, but</p>
<ol>
<li>Usually systemd is not installed inside containers</li>
<li>I don't know what you want to implement, but I pretty sure that run systemd daemon inside container is a <a href="https://stackoverflow.com/questions/51979553/is-it-recommended-to-run-systemd-inside-docker-container">bad idea</a></li>
<li>In most cases if you want to start long running background process, that will be better idea to run it in separate container and connect two containers.</li>
<li>If you need to do some action on container start before run main process, just override <a href="https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#define-a-command-and-arguments-when-you-create-a-pod" rel="nofollow noreferrer">entrypoint</a>, and prepend own command before main one (you may add it with <a href="https://www.maketecheasier.com/run-bash-commands-background-linux/" rel="nofollow noreferrer">&amp;</a> symbol to run in background, but it is a not smart solution)</li>
</ol>
