Merge pull request #4 from shanghailug/nagle_dev

test if binary or config is add or not. traefik is setup on k3s by default , do not need further action.
pull/6/head
Nagle Zhang 4 years ago committed by GitHub
commit b86376f286
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 23
      bootstrap.sh

@ -1,11 +1,20 @@
#!/bin/bash #!/bin/bash
# basic tools(git, curl) # k3s and set current context as k3s , k3s use trafik as ingress controller by default.
# k3s and set current context as k3s (which k3s &> /dev/null && test -f /etc/rancher/k3s/k3s.yaml) || \
curl -sfL https://get.k3s.io | sh -s - --write-kubeconfig-mode 644 && export KUBECONFIG=/etc/rancher/k3s/k3s.yaml curl -sfL https://get.k3s.io | sh -s - --write-kubeconfig-mode 644
export KUBECONFIG=/etc/rancher/k3s/k3s.yaml
kubectl get namespace jitsi &> /dev/null || \
sudo -E kubectl create namespace jitsi
sudo -E kubectl config set-context --current --namespace=jitsi
# helm # helm
curl -sfL https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3 | bash -s - which helm &> /dev/null || \
#export KUBECONFIG=/etc/rancher/k3s/k3s.yaml curl -sfL https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3 | bash -s -
sudo helm repo add jitsi https://jitsi-contrib.github.io/jitsi-helm/
sudo helm install shlug-jitsi jitsi/jitsi-meet -f values.yml # jitsi
sudo -E helm repo add jitsi https://jitsi-contrib.github.io/jitsi-helm/
sudo -E helm install shlug-jitsi jitsi/jitsi-meet -f values.yml -n jitsi

Loading…
Cancel
Save