From fdf98cbbb50af021de5eb0d11a73b3a08cb6aba6 Mon Sep 17 00:00:00 2001 From: Danny Gershman Date: Tue, 21 May 2024 14:29:58 -0500 Subject: [PATCH] adding new flag for k3s package --- k3s/common/k3s.service | 2 +- k3s/common/zarf.yaml | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/k3s/common/k3s.service b/k3s/common/k3s.service index 7c9cdbe..f79b132 100644 --- a/k3s/common/k3s.service +++ b/k3s/common/k3s.service @@ -25,4 +25,4 @@ RestartSec=5s ExecStartPre=/bin/sh -xc '! /usr/bin/systemctl is-enabled --quiet nm-cloud-setup.service' ExecStartPre=-/sbin/modprobe br_netfilter ExecStartPre=-/sbin/modprobe overlay -ExecStart=/usr/sbin/k3s server --write-kubeconfig-mode=700 --write-kubeconfig /root/.kube/config ###ZARF_VAR_K3S_ARGS### +ExecStart=/usr/sbin/k3s ###ZARF_VAR_K3S_CMD### ###ZARF_VAR_K3S_ARGS### diff --git a/k3s/common/zarf.yaml b/k3s/common/zarf.yaml index 0a2b6b2..5fe7ae1 100644 --- a/k3s/common/zarf.yaml +++ b/k3s/common/zarf.yaml @@ -3,6 +3,8 @@ metadata: name: distro-k3s variables: + - name: K3S_CMD + default: server --write-kubeconfig-mode=700 --write-kubeconfig /root/.kube/config - name: K3S_ARGS description: Arguments to pass to K3s default: --disable traefik