fix(k0s): don't copy files to controller only role (#1193)
This commit is contained in:
1 parent
d17354303e
commit
c46a70b98f
1 file changed
+3
-1
@@ -15,21 +15,23 @@ spec:
|
||||
- --disable-components=metrics-server
|
||||
#% if item.role | default('') == 'controller+worker' %#
|
||||
- --no-taints
|
||||
#% endif %#
|
||||
files:
|
||||
- name: containerd-config
|
||||
src: resources/containerd/
|
||||
perm: 0644
|
||||
user: root
|
||||
group: root
|
||||
#% endif %#
|
||||
#% if loop.first %#
|
||||
hooks: &hooks
|
||||
#% if item.role | default('') == 'controller+worker' %#
|
||||
apply:
|
||||
before:
|
||||
- sudo mv ~/unprivileged-ports.toml /etc/k0s/containerd.d/unprivileged-ports.toml
|
||||
#% if spegel.enabled | default(false) %#
|
||||
- sudo mv ~/spegel.toml /etc/k0s/containerd.d/spegel.toml
|
||||
#% endif %#
|
||||
#% endif %#
|
||||
reset:
|
||||
before:
|
||||
- sudo ip link delete cilium_host > /dev/null 2>&1 || true
|
||||
|
||||
Reference in new issue
Block a user