Skip to content

Latest commit

 

History

History
58 lines (41 loc) · 1.05 KB

README.md

File metadata and controls

58 lines (41 loc) · 1.05 KB

03-app

deploy

apply:

kubectl apply -k base

view resources:

kubectl get -k base

test

get your nginx ingress external ip address

kubectl get -k ./base
SERVICE_IP='...'

# or

SERVICE_IP=$(kubectl get service -n ingress-nginx ingress-nginx-controller --output jsonpath='{.status.loadBalancer.ingress[0].ip}')

echo $SERVICE_IP

curl "http://${SERVICE_IP}/test/hello"

deploy keda-http scaledobject

kubectl apply -k keda-http

test single request on /test/ endpoint

curl "http://${SERVICE_IP}/test/hello/wait?ms=5000"

test single request on /keda/ endpoint

curl "http://${SERVICE_IP}/keda/wait?ms=450"

load test on /keda/ endpoint

hey -c 250 -n 10000 "http://${SERVICE_IP}/keda/wait?ms=350"

resources