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
commit
b86376f286
@ -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 |
||||||
|
which helm &> /dev/null || \ |
||||||
curl -sfL https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3 | bash -s - |
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/ |
# jitsi |
||||||
sudo helm install shlug-jitsi jitsi/jitsi-meet -f values.yml |
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…
Reference in new issue