#
# ==================================================================================
+if [ -z "$1" ]; then
+ echo "No RECIPE file path provided. Using default: RECIPE_EXAMPLE/example_recipe_latest_stable.yaml"
+ RECIPE_FILE=RECIPE_EXAMPLE/example_recipe_latest_stable.yaml
+else
+ RECIPE_FILE=$1
+fi
+
+if [ ! -f $RECIPE_FILE ]; then
+ echo "Error: RECIPE file not found at $RECIPE_FILE"
+ exit 1
+fi
+
tools/kubernetes/install_k8s.sh
kubectl taint nodes --all node-role.kubernetes.io/control-plane-
tools/nfs/configure_nfs_server.sh localhost
bin/install_common_templates_to_helm.sh
bin/build_default_pipeline_image.sh
-tools/leofs/bin/install_leofs.sh
+tools/leofs/bin/install_leofs.sh $RECIPE_FILE
tools/kubeflow/bin/install_kubeflow.sh
kubectl create namespace traininghost
#copy of secrets to traininghost namespace to enable modelmanagement service to access leofs
kubectl apply -f bin/rolebindings.yaml
bin/install_databases.sh
-bin/install.sh -f RECIPE_EXAMPLE/example_recipe_latest_stable.yaml
+bin/install.sh -f $RECIPE_FILE
#
# ==================================================================================
+if [ -z "$1" ]; then
+ echo "Error: RECIPE file path not provided."
+ exit 1
+fi
+
+RECIPE_FILE=$1
+
+if [ ! -f "$RECIPE_FILE" ]; then
+ echo "Error: RECIPE file not found at $RECIPE_FILE"
+ exit 1
+fi
+
kubectl create namespace kubeflow
sleep 10
head /dev/urandom | tr -dc A-Za-z0-9 | head -c 8 | kubectl create secret generic leofs-secret -n kubeflow --from-file=password=/dev/stdin
--output type=oci,name=leofs | sudo nerdctl load --namespace k8s.io
helm dep up helm/leofs
-helm install leofs helm/leofs -f RECIPE_EXAMPLE/example_recipe_latest_stable.yaml
+helm install leofs helm/leofs -f $RECIPE_FILE
sleep 10
NAMESPACE=kubeflow
COMPONENT=leofs