From 1f6eb7f227d3c776937debd7106ffcd7732629ae Mon Sep 17 00:00:00 2001 From: Khue Doan Date: Fri, 17 Sep 2021 23:34:34 +0700 Subject: [PATCH] metal: fix unknown k3s param in worker nodes --- metal/roles/k3s/templates/config.yaml.j2 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/metal/roles/k3s/templates/config.yaml.j2 b/metal/roles/k3s/templates/config.yaml.j2 index 542d6ec8..d871a825 100644 --- a/metal/roles/k3s/templates/config.yaml.j2 +++ b/metal/roles/k3s/templates/config.yaml.j2 @@ -4,6 +4,8 @@ cluster-init: true server: https://{{ hostvars[groups['masters'][0]].ansible_host }}:6443 {% endif %} token-file: {{ k3s_token_file }} +{% if 'masters' in group_names %} disable: - local-storage - traefik +{% endif %}