Skip to content

Commit 8e1b833

Browse files
committed
updated deployment script for tagging workshop
1 parent f6bb94a commit 8e1b833

File tree

1 file changed

+2
-18
lines changed

1 file changed

+2
-18
lines changed
Lines changed: 2 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
11
#!/bin/bash
22

33
# This setup script will:
4-
# (1) Deploy the services in kubernetes using images from Docker Hub
4+
# (1) Deploy the credit check service with tags in kubernetes using the image from Docker Hub
55
# (2) Find and delete existing pods (to force redeployment)
66
#
77
# (1) Deploy the services in kubernetes using images from Docker Hub
88
kubectl apply -f creditcheckservice-with-tags/creditcheckservice-dockerhub.yaml
9-
kubectl apply -f creditprocessorservice/creditprocessorservice-dockerhub.yaml
10-
kubectl apply -f loadgenerator/loadgenerator-dockerhub.yaml
119

1210
# (2) Find and delete existing pods (to force redeployment)
1311
podlist=$(kubectl get pods)
@@ -18,19 +16,5 @@ if [[ $podlist =~ $re ]]; then
1816
kubectl delete po $POD
1917
fi
2018

21-
re="(creditprocessorservice[^[:space:]]+)"
22-
if [[ $podlist =~ $re ]]; then
23-
POD=${BASH_REMATCH[1]};
24-
echo "Restarting creditprocessorservice pod:"
25-
kubectl delete po $POD
26-
fi
27-
28-
re="(loadgenerator[^[:space:]]+)"
29-
if [[ $podlist =~ $re ]]; then
30-
POD=${BASH_REMATCH[1]};
31-
echo "Restarting loadgenerator pod:"
32-
kubectl delete po $POD
33-
fi
34-
3519
echo ""
36-
echo Deployed the creditcheckservice, creditprocessorservice, and loadgenerator from Docker Hub images
20+
echo Deployed the creditcheckservice with tags from Docker Hub images

0 commit comments

Comments
 (0)