Code Review
/
iec.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Add 2 committers to IEC Type1&2
[iec.git]
/
src
/
foundation
/
scripts
/
nginx.sh
diff --git
a/src/foundation/scripts/nginx.sh
b/src/foundation/scripts/nginx.sh
index
40a9377
..
96ee728
100755
(executable)
--- a/
src/foundation/scripts/nginx.sh
+++ b/
src/foundation/scripts/nginx.sh
@@
-36,6
+36,11
@@
spec:
- containerPort: 80
EOF
- containerPort: 80
EOF
+if [ -f "$HOME/.bashrc" ]; then
+ # shellcheck source=/dev/null
+ source "$HOME/.bashrc"
+fi
+
if ! kubectl get services | grep -q nginx; then
kubectl create -f "${NGINX_APP}"
fi
if ! kubectl get services | grep -q nginx; then
kubectl create -f "${NGINX_APP}"
fi
@@
-56,9
+61,10
@@
done
[ $attempts -gt 0 ] || exit 1
svcip=$(kubectl get services nginx -o json | grep clusterIP | cut -f4 -d'"')
[ $attempts -gt 0 ] || exit 1
svcip=$(kubectl get services nginx -o json | grep clusterIP | cut -f4 -d'"')
-sleep
1
0
-wget "http://$svcip"
+sleep
2
0
+wget
-O /dev/null
"http://$svcip"
kubectl delete -f "${NGINX_APP}"
kubectl delete -f "${NGINX_APP}"
+rm -f "${NGINX_APP}"
kubectl get rc
kubectl get pods
kubectl get services
kubectl get rc
kubectl get pods
kubectl get services