oc-k8s + bootstrap_dht
This commit is contained in:
13
k8s/start.sh
13
k8s/start.sh
@@ -2,6 +2,9 @@
|
||||
mode=${1:-dev}
|
||||
branch=${2:-main}
|
||||
clustername=${3:-opencloud}
|
||||
path=${4:-.}
|
||||
port=${5:-80}
|
||||
portTLS=${6:-443}
|
||||
|
||||
if [ ! -d "oc-k8s" ]; then
|
||||
echo "Cloning repository: $repo_name"
|
||||
@@ -17,5 +20,11 @@ cp -rf ./datas/$clustername ./oc-k8s/opencloud/charts/mongodb/start_files
|
||||
echo "Repository 'oc-k8s' already exists. Pulling latest changes..."
|
||||
cd "oc-k8s" && git checkout main && git pull
|
||||
|
||||
export CLUSTER_NAME=$clustername ./oc-k8s.sh create values $mode
|
||||
./oc-k8s.sh start $mode $branch
|
||||
if [ -f "./conf/$clustername.conf" ]; then
|
||||
oc-k8s create values -r $clustername -f $path -c "./conf/$clustername.conf"
|
||||
else
|
||||
oc-k8s create values -r $clustername -f $path
|
||||
fi
|
||||
|
||||
oc-k8s install
|
||||
oc-k8s start -f $path -r $clustername -n $clustername -t $mode -b $branch -p $port -P $portTLS
|
||||
Reference in New Issue
Block a user