diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 1efd9c062e7e7cfcc6ff9f2867b71eb98a97a014..426e035adee1b2a7885b52f641133e8e1dfef857 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -346,7 +346,6 @@ aws/rke2/bigbang test: ## putting it here now for a quick way to install dig - echo -e "\e[0Ksection_start:`date +%s`:host_setup[collapsed=true]\r\e[0K\e[33;1mHost Setup\e[37m" - yum install bind-utils -y - - ./scripts/hosts.sh - echo -e "\e[0Ksection_end:`date +%s`:host_setup\r\e[0K" - *test_bigbang - | diff --git a/scripts/hosts.sh b/scripts/hosts.sh deleted file mode 100755 index e416cabc2e521a52af218d0519cd318cd7fa8b6f..0000000000000000000000000000000000000000 --- a/scripts/hosts.sh +++ /dev/null @@ -1,20 +0,0 @@ -#!/bin/bash -set -e -trap 'echo ⌠exit at ${0}:${LINENO}, command was: ${BASH_COMMAND} 1>&2' ERR - -## Adds all the vs hostnames and LB IP to /etc/hosts -## Get the LB Hostname -INGRESS_LB_Hostname=$(kubectl get svc -n istio-system public-ingressgateway -o jsonpath="{.status.loadBalancer.ingress[0].hostname}") -## Get IP address from Hostname -INGRESS_LB_IP=$(dig $INGRESS_LB_Hostname +search +short | head -1) - -## Get a list of all the vs in cluster -VIRTUAL_SERVICES=$(kubectl get vs -A -o jsonpath={..spec.hosts[0]}) - -## For each vs put it in /etc/hosts -for vs in $VIRTUAL_SERVICES; -do echo "$INGRESS_LB_IP $vs" >> /etc/hosts -done - -##Cat out the file to see what we've done -cat /etc/hosts