Code Review
/
iec.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
| inline |
side by side
Initial Commit to Add RestAPI Server to IEC
[iec.git]
/
src
/
foundation
/
api
/
k8s
/
check.sh
diff --git a/src/foundation/api/k8s/check.sh
b/src/foundation/api/k8s/check.sh
new file mode 100755
(executable)
index 0000000..
d2d8cea
--- /dev/null
+++ b/
src/foundation/api/k8s/check.sh
@@ -0,0
+1,5
@@
+#!/bin/bash -ex
+svcip=$(kubectl get services iec-apiserver-svc -o json | grep clusterIP | cut -f4 -d'"')
+sleep 1
+wget -O /dev/null "http://$svcip"
+wget -O /dev/null "http://$svcip/v1/iec/status"