oc-k8s + bootstrap_dht

This commit is contained in:
mr
2026-01-27 16:04:45 +01:00
parent be080d7511
commit a4210d08c4
21 changed files with 875 additions and 78 deletions

View File

@@ -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