mirror of
https://github.com/k3s-io/k3s.git
synced 2024-06-07 19:41:36 +00:00
Fail to start k3s if nm-cloud-setup is enabled
Signed-off-by: Manuel Buil <mbuil@suse.com>
This commit is contained in:
parent
b74c499709
commit
a629db023c
@ -744,6 +744,7 @@ TasksMax=infinity
|
|||||||
TimeoutStartSec=0
|
TimeoutStartSec=0
|
||||||
Restart=always
|
Restart=always
|
||||||
RestartSec=5s
|
RestartSec=5s
|
||||||
|
ExecStartPre=/bin/sh -xc '! /usr/bin/systemctl is-enabled --quiet nm-cloud-setup.service'
|
||||||
ExecStartPre=-/sbin/modprobe br_netfilter
|
ExecStartPre=-/sbin/modprobe br_netfilter
|
||||||
ExecStartPre=-/sbin/modprobe overlay
|
ExecStartPre=-/sbin/modprobe overlay
|
||||||
ExecStart=${BIN_DIR}/k3s \\
|
ExecStart=${BIN_DIR}/k3s \\
|
||||||
|
@ -9,6 +9,7 @@ Type=notify
|
|||||||
EnvironmentFile=-/etc/default/%N
|
EnvironmentFile=-/etc/default/%N
|
||||||
EnvironmentFile=-/etc/sysconfig/%N
|
EnvironmentFile=-/etc/sysconfig/%N
|
||||||
EnvironmentFile=-/etc/systemd/system/k3s.service.env
|
EnvironmentFile=-/etc/systemd/system/k3s.service.env
|
||||||
|
ExecStartPre=/bin/sh -xc '! /usr/bin/systemctl is-enabled --quiet nm-cloud-setup.service'
|
||||||
ExecStart=/usr/local/bin/k3s server
|
ExecStart=/usr/local/bin/k3s server
|
||||||
KillMode=process
|
KillMode=process
|
||||||
Delegate=yes
|
Delegate=yes
|
||||||
|
@ -669,6 +669,7 @@ TasksMax=infinity
|
|||||||
TimeoutStartSec=0
|
TimeoutStartSec=0
|
||||||
Restart=always
|
Restart=always
|
||||||
RestartSec=5s
|
RestartSec=5s
|
||||||
|
ExecStartPre=/bin/sh -xc '! /usr/bin/systemctl is-enabled --quiet nm-cloud-setup.service'
|
||||||
ExecStartPre=-/sbin/modprobe br_netfilter
|
ExecStartPre=-/sbin/modprobe br_netfilter
|
||||||
ExecStartPre=-/sbin/modprobe overlay
|
ExecStartPre=-/sbin/modprobe overlay
|
||||||
ExecStart=${BIN_DIR}/k3s ${CMD_K3S} \$${CMD_K3S_ARGS_VAR}
|
ExecStart=${BIN_DIR}/k3s ${CMD_K3S} \$${CMD_K3S_ARGS_VAR}
|
||||||
|
Loading…
Reference in New Issue
Block a user