kubernetes-yaml/learn/learn-kubernetes-master/kiamol/ch09/blueGreenTest.ps1

6 lines
153 B
PowerShell
Raw Normal View History

$url = $(kubectl get svc vweb -o jsonpath='http://{.status.loadBalancer.ingress[0].*}:8090/v.txt')
for($i = 0; $i -lt 10; $i++) {
curl -s "$url"
}