新增learn-kubernetes(https://github.com/yyong-brs/learn-kubernetes)相关文件
This commit is contained in:
8
learn/learn-kubernetes-master/kiamol/ch14/loadgen.ps1
Normal file
8
learn/learn-kubernetes-master/kiamol/ch14/loadgen.ps1
Normal file
@@ -0,0 +1,8 @@
|
||||
|
||||
Remove-Item Alias:curl -ErrorAction Ignore
|
||||
|
||||
$url = $(kubectl get svc todo-proxy -o jsonpath='http://{.status.loadBalancer.ingress[0].*}:8015' -n kiamol-ch14-test)
|
||||
|
||||
for($i = 0; $i -lt 500; $i++) {
|
||||
curl -s "$url/List" | Out-Null
|
||||
}
|
||||
Reference in New Issue
Block a user