Kangal environment variables

November 9, 2023 ยท View on GitHub

Proxy

ParameterDescriptionDefault
ALLOWED_CUSTOM_IMAGESAllow to use custom backend images specified in the requestfalse
KUBE_CLIENT_TIMEOUTTimeout for each operation done by kube client5s
MAX_LIST_LIMITOutput of LIST endpoint50
OPEN_API_SERVER_DESCRIPTIONDescription to the OpenAPI server URLKangal proxy default value
OPEN_API_SERVER_URLURL to the OpenAPI specification serverhttps://kangal-proxy.example.com/openapi
OPEN_API_SPEC_PATHPath to the openapi spec file/etc/kangal
OPEN_API_SPEC_FILEName of the openapi spec fileopenapi.json
OPEN_API_UI_URLURL to the OpenAPI UIhttps://kangal-openapi-ui.example.com
OPEN_API_CORS_ALLOW_ORIGINList of origins a cross-domain request can be executed from*
OPEN_API_CORS_ALLOW_HEADERSList of non simple headers client is allowed to use with cross-domain requestsContent-Type,api_key,Authorization
WEB_HTTP_PORT8080

Controller

ParameterDescriptionDefault
CLEANUP_THRESHOLDLife time of a load test (disable by setting value to 0)1h
KANGAL_PROXY_URLEndpoints used to store load test reports""
KUBE_CLIENT_TIMEOUTTimeout for each operation done by kube client5s
SYNC_HANDLER_TIMEOUTTime limit for each sync operation60s
WEB_HTTP_PORT8080

Backend specific configuration

JMeter

ParameterDescriptionDefault
JMETER_MASTER_IMAGE_NAMEJMeter master image name/repositoryhellofresh/kangal-jmeter-master
JMETER_MASTER_IMAGE_TAGTag of the JMeter master image abovelatest
JMETER_MASTER_CPU_LIMITSMaster CPU limits
JMETER_MASTER_CPU_REQUESTSMaster CPU requests
JMETER_MASTER_MEMORY_LIMITSMaster memory limits
JMETER_MASTER_MEMORY_REQUESTSMaster memory requests
JMETER_WORKER_IMAGE_NAMEJMeter worker image name/repositoryhellofresh/kangal-jmeter-worker
JMETER_WORKER_IMAGE_TAGTag of the JMeter worker image abovelatest
JMETER_WORKER_CPU_LIMITSWorker container CPU limits
JMETER_WORKER_CPU_REQUESTSWorker CPU requests
JMETER_WORKER_MEMORY_LIMITSWorker memory limits
JMETER_WORKER_MEMORY_REQUESTSWorker memory requests
JMETER_WORKER_REMOTE_CUSTOM_DATA_ENABLEDEnable remote custom datafalse
JMETER_WORKER_REMOTE_CUSTOM_DATA_BUCKETThe name of the bucket where remote data is
JMETER_WORKER_REMOTE_CUSTOM_DATA_VOLUME_SIZEVolume size used by download remote data1Gi
JMETER_WORKER_REMOTE_CUSTOM_DATA_STORAGECLASSStorageClass used for remote data PVC (ReadWriteMany required)kubernetes environment default
RCLONE_CONFIG_REMOTECUSTOMDATA_TYPERclone environment variable for type
RCLONE_CONFIG_REMOTECUSTOMDATA_ACCESS_KEY_IDRclone environment variable for access key ID
RCLONE_CONFIG_REMOTECUSTOMDATA_SECRET_ACCESS_KEYRclone environment variable for secret access key
RCLONE_CONFIG_REMOTECUSTOMDATA_REGIONRclone environment variable for region
RCLONE_CONFIG_REMOTECUSTOMDATA_ENDPOINTRclone environment variable for endpoint
JMETER_TESTDATA_DECOMPRESS_IMAGEImage used to decompress the testdata.alpine:latest
JMETER_WORKER_REMOTE_CUSTOM_DATA_IMAGEImage used to sync remote custom data.rclone/rclone:latest

Locust

ParameterDescriptionDefault
LOCUST_IMAGELocust image
LOCUST_IMAGE_NAMELocust image namelocustio/locust
LOCUST_IMAGE_TAGLocust image taglatest
LOCUST_MASTER_CPU_LIMITSMaster container CPU limits
LOCUST_MASTER_CPU_REQUESTSMaster CPU requests
LOCUST_MASTER_MEMORY_LIMITSMaster memory limits
LOCUST_MASTER_MEMORY_REQUESTSMaster memory requests
LOCUST_WORKER_CPU_LIMITSMaster container CPU limits
LOCUST_WORKER_CPU_REQUESTSMaster CPU requests
LOCUST_WORKER_MEMORY_LIMITSMaster memory limits
LOCUST_WORKER_MEMORY_REQUESTSMaster memory requests

ghz

ParameterDescriptionDefault
GHZ_IMAGE_NAMEDefault ghz image name/repositoryhellofresh/kangal-ghz
GHZ_IMAGE_TAGTag of the ghz image abovelatest
GHZ_MASTER_CPU_LIMITSCPU limits
GHZ_MASTER_CPU_REQUESTSCPU requests
GHZ_MASTER_MEMORY_LIMITSMemory limits
GHZ_MASTER_MEMORY_REQUESTSMemory requests

k6

ParameterDescriptionDefault
K6_IMAGE_NAMEK6 image namegrafana/k6
K6_IMAGE_TAGK6 image taglatest
K6_CPU_LIMITSCPU limits
K6_CPU_REQUESTSCPU requests
K6_MEMORY_LIMITSMemory limits
K6_MEMORY_REQUESTSMemory requests

Logger config

ParameterDescriptionDefault
LOG_LEVELLog levelinfo
LOG_TYPELog typekangal

Report config

ParameterDescriptionDefault
AWS_ACCESS_KEY_IDAWS access key ID. If not defined report will not be stored
AWS_BUCKET_NAMEThe name of the bucket for saving reports
AWS_DEFAULT_REGIONStorage connection parameter
AWS_ENDPOINT_URLStorage connection parameter
AWS_PRESIGNED_EXPIRESExpiration time for Presigned URLs
AWS_SECRET_ACCESS_KEYAWS secret access key
AWS_USE_HTTPSSet to "true" to use HTTPSfalse

Swagger

ParameterDescriptionDefault
PORTThe PORT of OpenAPI definition8080
URLThe URL pointing to OpenAPI definitionhttps://kangal-proxy.example.com/openapi
VALIDATOR_URLThe URL to spec validatornull
KANGAL_PROXY_URLKangal Proxy URL used to persist reportshttps://kangal-proxy.example.com