X-Git-Url: https://gerrit.akraino.org/r/gitweb?a=blobdiff_plain;f=src%2Ffoundation%2Fapi%2Fk8s%2Fcheck.sh;fp=src%2Ffoundation%2Fapi%2Fk8s%2Fcheck.sh;h=d2d8ceabda95e84af03679ac246cd0248e0fb777;hb=754bbb90fbbc06ef896673b7346c3086d481dca6;hp=0000000000000000000000000000000000000000;hpb=6ebd8c9c9a1e8cc534b6428c12d0cf6f4bfd9e04;p=iec.git diff --git a/src/foundation/api/k8s/check.sh b/src/foundation/api/k8s/check.sh new file mode 100755 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"