From 534225c1351996f616b7b194a9938c55d91c8176 Mon Sep 17 00:00:00 2001 From: Klesh Wong Date: Sun, 17 Jan 2021 11:06:11 +0800 Subject: [PATCH] [misc] use kubectl without sudo --- devel/k3s.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/devel/k3s.sh b/devel/k3s.sh index 38fe1a6..234395d 100755 --- a/devel/k3s.sh +++ b/devel/k3s.sh @@ -19,6 +19,7 @@ CF_API_KEY=$5 # install ks3 ssh "$SSH" ' if ! command -v k3s >/dev/null ; then + export K3S_KUBECONFIG_MODE="644" export INSTALL_K3S_MIRROR=cn export INSTALL_K3S_VERSION=v1.20.0-k3s2 export INSTALL_K3S_EXEC="--tls-san '"$IP"' --node-external-ip '"$IP"' --disable traefik --default-local-storage-path /data"