openfaas
Last updated
Was this helpful?
Last updated
Was this helpful?
This provider adds support for . It adds the and (by default) installs the faas-netes
runtime to the project namespace. Each openfaas
module maps to a single OpenFaaS function.
See the reference below for configuration options for faas-netes
, and the for how to configure the individual functions.
Also see the for a simple usage example.
Below is the full schema reference for the provider configuration. For an introduction to configuring a Garden project with providers, please look at our .
The reference is divided into two sections. The contains the complete YAML schema, and the describes each schema key.
The values in the schema below are the default values.
providers[]
array[object]
[]
No
providers[].dependencies[]
List other providers that should be resolved before this one.
array[string]
[]
No
Example:
providers[].environments[]
If specified, this provider will only be used in the listed environments. Note that an empty array effectively disables the provider. To use a provider in all environments, omit this field.
array[string]
No
Example:
providers[].name
The name of the provider plugin to use.
string
"openfaas"
Yes
Example:
providers[].gatewayUrl
The external URL to the function gateway, after installation. This is required if you set faasNetes.values
or faastNetes.install: false
, so that Garden can know how to reach the gateway.
string
No
Example:
providers[].hostname
The ingress hostname to configure for the function gateway, when faasNetes.install: true
and not overriding faasNetes.values
. Defaults to the default hostname of the configured Kubernetes provider.
Important: If you have other types of services, this should be different from their ingress hostnames, or the other services should not expose paths under /function and /system to avoid routing conflicts.
string
No
Example:
providers[].faasNetes
object
{"install":true}
No
providers[].faasNetes.install
boolean
true
No
providers[].faasNetes.values
Note that this completely replaces the values Garden assigns by default, including functionNamespace
, ingress configuration etc. so you need to make sure those are correctly configured for your use case.
object
No
> dependencies
> environments
> name
> gatewayUrl
> hostname
> faasNetes
> > install
Set to false if you'd like to install and configure faas-netes yourself. See the for details.
> > values
Override the values passed to the faas-netes Helm chart. Ignored if install: false
. See the for the available options.