oc-k8s + bootstrap_dht
This commit is contained in:
@@ -1,21 +1,22 @@
|
||||
#!/bin/bash
|
||||
mode=${1:-demo}
|
||||
branch=${2:-main}
|
||||
mode=${2:-demo}
|
||||
branch=${3:-main}
|
||||
path=${4:-.}
|
||||
|
||||
port=${5:-80}
|
||||
portTLS=${6:-443}
|
||||
|
||||
start=1
|
||||
end=${3:-1}
|
||||
end=${1:-1}
|
||||
|
||||
cp $HOME/.kube/config $HOME/.kube/config_past
|
||||
|
||||
|
||||
for ((i=start; i<=end; i++)); do
|
||||
sudo cp /etc/rancher/k3s/k3s.yaml $HOME/.kube/config
|
||||
|
||||
./start.sh $mode $branch "cluster-$i"
|
||||
./start.sh $mode $branch "cluster-$i" $path $port $portTLS
|
||||
|
||||
sudo cp $HOME/.kube/config $HOME/.kube/configCluster$i
|
||||
sudo chown $(id -u):$(id -g) $HOME/.kube/configCluster$i
|
||||
export KUBECONFIG="$HOME/.kube/configCluster$i"
|
||||
cd ./oc-deploy/k8s
|
||||
done
|
||||
export KUBECONFIG=~/.kube/config
|
||||
export KUBECONFIG="$HOME/.kube/configCluster$i"
|
||||
done
|
||||
Reference in New Issue
Block a user