-
Thomas Runyon authoredThomas Runyon authored
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
01_virtualservices.sh 384 B
#!/usr/bin/env bash
# exit on error
set -e
# Populate /etc/hosts
ip=$(kubectl -n istio-system get service istio-ingressgateway -o jsonpath='{.status.loadBalancer.ingress[0].ip}')
echo "Checking "
hosts=`kubectl get virtualservices -A -o jsonpath="{ .items[*].spec.hosts[*] }"`
for host in $hosts; do
echo "$ip $host" >> /etc/hosts
curl -svv https://$host/ > /dev/null
done