From b0dc3de1407cd4821bf7bd8e1aee3391d467f749 Mon Sep 17 00:00:00 2001 From: agunapal Date: Tue, 12 Mar 2024 19:09:13 +0000 Subject: [PATCH] Kubernetes nightly tests --- .github/workflows/kubernetes_tests.yml | 1 - kubernetes/tests/scripts/test_mnist.sh | 8 ++++---- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/.github/workflows/kubernetes_tests.yml b/.github/workflows/kubernetes_tests.yml index d3d0287a71..6efb36d37f 100644 --- a/.github/workflows/kubernetes_tests.yml +++ b/.github/workflows/kubernetes_tests.yml @@ -25,7 +25,6 @@ jobs: curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl" sudo install -o root -g root -m 0755 kubectl /usr/local/bin/kubectl echo "/usr/local/bin" >> $GITHUB_PATH - minikube addons enable metrics-server - name: Setup Python 3.9 uses: actions/setup-python@v5 with: diff --git a/kubernetes/tests/scripts/test_mnist.sh b/kubernetes/tests/scripts/test_mnist.sh index 7418c5f2d0..a11ecab3a5 100755 --- a/kubernetes/tests/scripts/test_mnist.sh +++ b/kubernetes/tests/scripts/test_mnist.sh @@ -129,9 +129,9 @@ fi } # Setup -#start_minikube_cluster -#build_docker_image -#get_model_archive "https://torchserve.pytorch.org/mar_files/mnist_v2.mar" "mnist" +start_minikube_cluster +build_docker_image +get_model_archive "https://torchserve.pytorch.org/mar_files/mnist_v2.mar" "mnist" deploy_cluster "./kubernetes/tests/configs/deployment.yaml" "ts-def" echo "CPU usage test" @@ -142,4 +142,4 @@ make_cluster_accessible "kubernetes/examples/mnist/service.yaml" 5 make_prediction "mnist" "examples/image_classifier/mnist/test_data/0.png" "0" # Clean up -#delete_minikube_cluster +delete_minikube_cluster