Skip to content

Commit

Permalink
adding new flag for k3s package
Browse files Browse the repository at this point in the history
  • Loading branch information
dgershman committed May 21, 2024
1 parent a94713b commit fdf98cb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion k3s/common/k3s.service
Original file line number Diff line number Diff line change
Expand Up @@ -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###
2 changes: 2 additions & 0 deletions k3s/common/zarf.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit fdf98cb

Please sign in to comment.