Repository for dip
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tenant-catalog/kubeflow/tests/gh-actions/install_kserve.sh

28 lines
1.3 KiB

#!/bin/bash
set -euxo pipefail
echo "Installing Kserve ..."
cd apps/kserve
set +e
for ((i=1; i<=3; i++)); do
if kustomize build kserve | kubectl apply --server-side --force-conflicts -f -; then
break
fi
kubectl wait --for=condition=Ready pods --all --all-namespaces --timeout=60s --field-selector=status.phase!=Succeeded
kubectl wait --for=condition=Ready certificate/serving-cert -n kubeflow --timeout=60s
kubectl get secret kserve-webhook-server-cert -n kubeflow -o name
done
set -e
kubectl wait --for condition=established --timeout=30s crd/clusterservingruntimes.serving.kserve.io
kustomize build kserve | kubectl apply --server-side --force-conflicts -f -
kustomize build models-web-app/overlays/kubeflow | kubectl apply --server-side --force-conflicts -f -
kubectl wait --for=condition=Ready pods --all --all-namespaces --timeout=600s \
--field-selector=status.phase!=Succeeded
kubectl wait --for=condition=Available deployment/kserve-controller-manager -n kubeflow --timeout=10s
kubectl wait --for=condition=Available deployment/kserve-models-web-app -n kubeflow --timeout=10s
kubectl get deployment -n kubeflow -l app.kubernetes.io/name=kserve
kubectl get crd | grep -E 'inferenceservice|servingruntimes'
# Return to the original directory
cd ../../