ofc-bootstrap
ofc-bootstrap copied to clipboard
More configuration in gateway_config
Expected Behaviour
There are some settings that we might want to change, such as RO Filesystem, min/max replicas for scaling etc in the gateway_config.yaml, can we make those configurable, with the current values as defaults.
Current Behaviour
https://github.com/openfaas-incubator/ofc-bootstrap/blob/master/templates/gateway_config.yml#L30 https://github.com/openfaas-incubator/ofc-bootstrap/blob/master/templates/gateway_config.yml#L31 https://github.com/openfaas-incubator/ofc-bootstrap/blob/master/templates/gateway_config.yml#L32
Possible Solution
add these as defaults to example.init.yaml, and make them read that default, so we can set custom settings per cluster.
Discussed on a call, approved for implementation.
You should also template buildshiprun limits: https://github.com/openfaas/openfaas-cloud/blob/master/buildshiprun_limits.yml
check where else limits are set, see if we need to change anything else?
Add:
- function_memory_limit_mb
- function_cpu_requests_milli
- function_cpu_limit_milli (we should disable this option for reasons
going to tackle this as part of moving to use the OFC Helm chart.