Skip to content

testing/k3s: always respawn

杨文 陈 requested to merge wener/aports:k3s into master

k3s has internal restart, don't expected to exit, but current k3s may exit when error after minutes, respawn 5*10 is not enough, even less than the internal restart. Increase respawn to restore k3s service when network fail, e.g. dns change may need sometime to restore.


I misunderstand the k3s restart logic, the restart is controlled by systemd in ubuntu, so there is no internal restart.

k3s will terminate when db connection failed, in systemd, they setup always restart https://github.com/rancher/k3s/blob/86d2e2a5f88b72f1834e219463577604efd1771c/k3s.service#L20 . I'd like to keep the same in openrc.

Edited by 杨文 陈

Merge request reports