This app uses a sample JSON document and adds it to a CosmosDB instance n times, depending on some environment variables the app expects (.env template included):
HOST
: ComsosDB URLDATABASE
: CosmosDB database nameAUTHKEY
: CosmosDB authentication keyCOLLECTION
: CosmosDB collection nameCOUNT
: number of documents the application tries to insert in a loop
The repository also contains a Kubernetes job template, where the application can be scaled to a number of parallel running jobs/pods (please see jobtemplate.yaml --> property parallelism
)