-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrestart-frontend.sh
More file actions
24 lines (20 loc) · 804 Bytes
/
Copy pathrestart-frontend.sh
File metadata and controls
24 lines (20 loc) · 804 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
echo "========================"
echo "Build Docker image"
echo "========================"
docker build --no-cache -t java-html-frontend:latest frontend/
echo "========================"
echo "Load image into kind"
echo "========================"
kind load docker-image java-html-frontend:latest --name gili
echo "========================"
echo "Restart the deployment"
echo "========================"
kubectl rollout restart deployment/html-frontend -n java-html-project
echo "================================="
echo "Wait for deployment availability"
echo "================================="
kubectl rollout status deployment/html-frontend -n java-html-project
echo "==============="
echo "Check on Host"
echo "==============="
curl -H "Host: java-html.local" http://127.0.0.1:8080/resourcelist.html