Skip to content
Snippets Groups Projects
Commit 0c3f05fa authored by Madalyn Marabella's avatar Madalyn Marabella
Browse files

redirect port forward to /dev/null

parent 430f3c11
No related branches found
No related tags found
1 merge request!536M18 service and CICD updates
Pipeline #183787 failed
......@@ -12,13 +12,8 @@ aws-update-tf:
- aws eks update-kubeconfig --region $AWS_REGION --name $EKS_CLUSTER_NAME --role-arn $EKS_CLUSTER_MGMT_ROLE
- localPort=$ELASTIC_PORT
- |
while netstat -an | grep $localPort | grep -i listen ; do
echo "$localPort Port in use"
((localPort++))
done
- echo $localPort
- kubectl port-forward -n $TENANT_GROUP_NAME-tenant-$EKS_TENANT_NAME-elasticsearch svc/elasticsearch-es-http $localPort:$ELASTIC_PORT
- kubectl port-forward -n $TENANT_GROUP_NAME-tenant-$EKS_TENANT_NAME-elasticsearch svc/elasticsearch-es-http $localPort:$ELASTIC_PORT > /dev/null 2>&1 &
- export ELASTIC_PORT=$localPort
- pid=$!
- |
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment