Addon:OpenFaaS

Homepage: https://www.openfaas.com/
From MicroK8s version: 1.21+
Supported arch: amd64

OpenFaaS, the popular serverless framework, can be enabled with:

microk8s enable openfaas

Disable basic auth using the --no-auth flag.
If you would like to use the OpenFaaS Operator mode, use --operator .

Further customize the installation by passing a values file using

microk8s enable openfaas -f values.yaml

The possible values are documented here.

Hi,

The documentation here for passing a values file is incorrect - the correct example should be either:
microk8s enable openfaas -f=values.yaml
and/or:
microk8s enable openfaas --values=values.yaml

Additionally it took me some tinkering to understand what options should be defined in the values.yaml file until I discovered I could do microk8s helm3 show values openfaas/openfaas - maybe this could be added too?

Many thanks,
David

Hey there,

Is there a reason why the addons doesn’t isn’t enabled/would not work for arm64 ?

I believe OpenFaas does support natively arm64.

Thanks

The only reason i can think of is it wasn’t tested.

Is there a way I can locally build the snap and test it?

Is it as simple as checking out the GH repo, making changes and I can recompile/build a snap file that I can install locally to test out?

Yes you can build your own snap.

You need snapcraft installed and lxd tho