rootless-containers / usernetes

Kubernetes without the root privileges
https://github.com/kubernetes/enhancements/tree/master/keps/sig-node/2033-kubelet-in-userns-aka-rootless
Apache License 2.0
865 stars 58 forks source link

There is no multi-user.target in --user mode systemd. #279

Closed cloud-66 closed 1 year ago

cloud-66 commented 1 year ago

278 solved by using default.target , because systemd in user mode don`t contain multi-user.target

systemctl --user -t target

image

how to check enable autostart service

systemctl --user enable u7s.target

but command doesn't show any dependensies

systemctl --user list-dependencies multi-user.target

after changing to default.target

systemctl --user list-dependencies default.target

image

and for worker node needs to change parameters in u7s.target delete running master node components

Requires=u7s-node.target
After=u7s-node.target
AkihiroSuda commented 1 year ago

Thanks, but please sign the commit for DCO https://github.com/apps/dco

(run git commit -a -s --amend, and make sure that the Signed-off-by: NAME <EMAIL> line with your real name is included in the commit message)

AkihiroSuda commented 1 year ago

ping @cloud-66

cloud-66 commented 1 year ago

@AkihiroSuda done