for i in {1..3};dokubectlrun \resource-consumer-$i \--image=gcr.io/kubernetes-e2e-test-images/resource-consumer:1.4 \--expose \--service-overrides='{ "spec": { "type": "LoadBalancer" } }'--port8080done
Scale the deployments.
for i in {1..3};dokubectlscaledeployment--replicas=200resource-consumer-$idone
Get the public IPs.
for i in {1..3};dokubectlgetservicesresource-consumer-$idone
Trigger resource usage.
for i in {1..100};docurl--data"millicores=4000&durationSec=3600"http://IP.OF.SERVICE-01:8080/ConsumeCPU;curl--data"millicores=4000&durationSec=3600"http://IP.OF.SERVICE-02:8080/ConsumeCPU;curl--data"millicores=4000&durationSec=3600"http://IP.OF.SERVICE-03:8080/ConsumeCPU;done