From 14f621ddfabb73da0520359f1d5f7eeda51906b7 Mon Sep 17 00:00:00 2001 From: Nagle Zhang Date: Mon, 18 Apr 2022 09:47:17 +0800 Subject: [PATCH] using environment to make sure current setup apply to k3s. --- bootstrap.sh | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) mode change 100644 => 100755 bootstrap.sh diff --git a/bootstrap.sh b/bootstrap.sh old mode 100644 new mode 100755 index c15dd5e..58f766c --- a/bootstrap.sh +++ b/bootstrap.sh @@ -1,14 +1,11 @@ #!/bin/bash # basic tools(git, curl) - -# k3s -curl -sfL https://get.k3s.io | sh -s - --write-kubeconfig-mode 644 -kubectl create namespace jitsi +# k3s and set current context as k3s +curl -sfL https://get.k3s.io | sh -s - --write-kubeconfig-mode 644 && export KUBECONFIG=/etc/rancher/k3s/k3s.yaml # helm -curl -sfL get_helm.sh https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3 | bash -s - -export KUBECONFIG=/etc/rancher/k3s/k3s.yaml -helm repo add jitsi https://jitsi-contrib.github.io/jitsi-helm/ -helm install shlug-jitsi jitsi/jitsi-meet - +curl -sfL https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3 | bash -s - +#export KUBECONFIG=/etc/rancher/k3s/k3s.yaml +sudo helm repo add jitsi https://jitsi-contrib.github.io/jitsi-helm/ +sudo helm install shlug-jitsi jitsi/jitsi-meet -f values.yml