[misc] use kubectl without sudo

This commit is contained in:
Klesh Wong 2021-01-17 11:06:11 +08:00
parent 67cee9064e
commit 534225c135

View File

@ -19,6 +19,7 @@ CF_API_KEY=$5
# install ks3 # install ks3
ssh "$SSH" ' ssh "$SSH" '
if ! command -v k3s >/dev/null ; then if ! command -v k3s >/dev/null ; then
export K3S_KUBECONFIG_MODE="644"
export INSTALL_K3S_MIRROR=cn export INSTALL_K3S_MIRROR=cn
export INSTALL_K3S_VERSION=v1.20.0-k3s2 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" export INSTALL_K3S_EXEC="--tls-san '"$IP"' --node-external-ip '"$IP"' --disable traefik --default-local-storage-path /data"