build file

This commit is contained in:
kimscott
2019-12-10 12:32:26 +09:00
parent db444ce4eb
commit e73095bd40

View File

@@ -38,17 +38,15 @@ steps:
_GATEWAY_IP=$$(kubectl get -o jsonpath="{.status.loadBalancer.ingress[0].ip}" svc gateway --ignore-not-found)
_GATEWAY_PORT=$$(kubectl get -o jsonpath="{.spec.ports[0].port}" svc gateway --ignore-not-found)
if [ -z $_GATEWAY_IP];
then
_GATEWAY_IP="localhost"
if [ -z $_GATEWAY_IP]; \
then \
_GATEWAY_IP="localhost" \
fi
if [ -z $_GATEWAY_PORT];
then
_GATEWAY_PORT=8080
if [ -z $_GATEWAY_PORT]; \
then \
_GATEWAY_PORT=8080 \
fi
echo ${_GATEWAY_IP}
cat <<EOF | kubectl apply -f -
apiVersion: v1
kind: Service