On 30. 10. 2015 13:21, Lorenz Vanthillo
I've Jenkins running in a pod, and I want to build
+ deploy an application (also on OpenShift, with jenkins).
It's working fine. Except the last part. There I want to check
if it's possible to curl to my cluster_ip(ofservice):port to see
if the app is available:
$SERVICE_IP=oc get service
echo "Checking for successful test deployment at $HOSTNAME"
while [ $rc -ne 0 -a $count -lt $attempts ]; do
if curl -s --connect-timeout 2 $SERVICE_IP:$PORT >&
As you can see, the code is not finished. I'm working with
environment variables and I need to get the cluster ip and the
port of my service:
oc get service test
NAME CLUSTER_IP EXTERNAL_IP PORT(S)
test 172.30.211.29 <none> 8080/TCP
I can get my service, but is it possible to filter the
CLUSTER_IP or PORT with an oc-command?
users mailing list
users lists openshift redhat com