- git clone this repo
- task run-api-local
- task run-grpc-local
curl -X GET localhost:9090/scale
yiedls: {"desiredReplicas":3}
curl -X POST http://localhost:9090/scale -H "Content-Type: application/json" -d '{"desiredReplicas": 9}'
curl -X GET localhost:9090/scale
yiedls: {"desiredReplicas":9}
run task run-api-local
which will run the following commands for you:
- poetry install --no-root
- poetry run uvicorn src.api.main:app --port 9090 --reload
run task run-grpc-local
which will run the following commands for you:
- poetry run python src/custom_scaler/grpc_server.py
run task run-worker-local
which will run the following commands for you:
- poetry install --no-root
- poetry run uvicorn src.worker.main:app --port 8080 --reload
run task docker-build
which will run the following commands:
docker build -t 'your-repo/keda-poc:0.0.1'
TBC
-
access to a given cluster - use a "Palygrond" cluster
-
install keda in keda namespace -
task deploy_keda
-
deploy app in keda-poc namespace
task deploy_demo_app
-
create scaling object
-
trigger a scale up event
-
trigger a scale down event
- ./apy.py
task run-api-local
- ./worker.py
task run-worker-local