kubectl create namespace kubeflow
sleep 10
-
kubeflow_dir=tools/kubeflow
previous_dir=$PWD
source $previous_dir/$kubeflow_dir/leofs_env.sh
-KFP_VERSION="2.2.0"
+# Updated KFP version for better Kubernetes v1.32.3 compatibility
+KFP_VERSION="2.3.0" # Updated from 2.2.0 to 2.3.0 for better compatibility
REPO_URL="https://github.com/kubeflow/pipelines/archive/refs/tags/$KFP_VERSION.tar.gz"
WORK_DIR="/tmp/kubeflow_pipelines"
-CUSTOM_ENV_DIR="$previous_dir/$kubeflow_dir/aimlfw-kustomize" # Update this path to your actual custom kustomize directory
+CUSTOM_ENV_DIR="$previous_dir/$kubeflow_dir/aimlfw-kustomize"
# Create a working directory in /tmp
mkdir -p $WORK_DIR
# Replace placeholders in the specific kustomize file using environment variables
KUSTOMIZE_FILE="manifests/kustomize/env/$(basename $CUSTOM_ENV_DIR)/minio-artifact-secret-patch.env"
+
# Replace values in the kustomize file
sed -i "s/PLACEHOLDER_LEOFS_KEY/$LEOFS_KEY/g" $KUSTOMIZE_FILE
cd manifests/kustomize/env/$(basename $CUSTOM_ENV_DIR)
-# deploy all the artifacts
+# Deploy all the artifacts
kustomize build ../../cluster-scoped-resources | kubectl apply -f -
kubectl wait crd/applications.app.k8s.io --for condition=established --timeout=60s
kustomize build ./ | kubectl apply -f -