File tree Expand file tree Collapse file tree 1 file changed +2
-18
lines changed Expand file tree Collapse file tree 1 file changed +2
-18
lines changed Original file line number Diff line number Diff line change 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
88kubectl 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)
1311podlist=$( kubectl get pods)
@@ -18,19 +16,5 @@ if [[ $podlist =~ $re ]]; then
1816 kubectl delete po $POD
1917fi
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-
3519echo " "
36- echo Deployed the creditcheckservice, creditprocessorservice, and loadgenerator from Docker Hub images
20+ echo Deployed the creditcheckservice with tags from Docker Hub images
You can’t perform that action at this time.
0 commit comments