From 8e1b8334af3084c1ce3929cbf311d6a4e4982815 Mon Sep 17 00:00:00 2001 From: dmitchsplunk Date: Thu, 18 Apr 2024 14:13:40 -0700 Subject: [PATCH] updated deployment script for tagging workshop --- .../11-deploy-from-dockerhub-with-tags.sh | 20 ++----------------- 1 file changed, 2 insertions(+), 18 deletions(-) diff --git a/workshop/tagging/11-deploy-from-dockerhub-with-tags.sh b/workshop/tagging/11-deploy-from-dockerhub-with-tags.sh index 568d1a7f4b..97e943c127 100755 --- a/workshop/tagging/11-deploy-from-dockerhub-with-tags.sh +++ b/workshop/tagging/11-deploy-from-dockerhub-with-tags.sh @@ -1,13 +1,11 @@ #!/bin/bash # This setup script will: -# (1) Deploy the services in kubernetes using images from Docker Hub +# (1) Deploy the credit check service with tags in kubernetes using the image from Docker Hub # (2) Find and delete existing pods (to force redeployment) # # (1) Deploy the services in kubernetes using images from Docker Hub kubectl apply -f creditcheckservice-with-tags/creditcheckservice-dockerhub.yaml -kubectl apply -f creditprocessorservice/creditprocessorservice-dockerhub.yaml -kubectl apply -f loadgenerator/loadgenerator-dockerhub.yaml # (2) Find and delete existing pods (to force redeployment) podlist=$(kubectl get pods) @@ -18,19 +16,5 @@ if [[ $podlist =~ $re ]]; then kubectl delete po $POD fi -re="(creditprocessorservice[^[:space:]]+)" -if [[ $podlist =~ $re ]]; then - POD=${BASH_REMATCH[1]}; - echo "Restarting creditprocessorservice pod:" - kubectl delete po $POD -fi - -re="(loadgenerator[^[:space:]]+)" -if [[ $podlist =~ $re ]]; then - POD=${BASH_REMATCH[1]}; - echo "Restarting loadgenerator pod:" - kubectl delete po $POD -fi - echo "" -echo Deployed the creditcheckservice, creditprocessorservice, and loadgenerator from Docker Hub images +echo Deployed the creditcheckservice with tags from Docker Hub images