kjackal
February 25, 2021, 10:23am
1
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.
# Building and testing MicroK8s
## Building the snap from source
To build the MicroK8s snap, you need to install Snapcraft.
```shell
sudo snap install snapcraft --classic
```
[Building a snap](https://snapcraft.io/docs/snapcraft-overview) is done by running `snapcraft` in the root of the project. Snapcraft spawn a VM managed by [Multipass](https://multipass.run/) and builds MicroK8s inside of it. If you don’t have Multipass installed, snapcraft will first prompt for its automatic installation.
After `snapcraft` finishes, you can install the newly compiled snap:
```shell
sudo snap install microk8s_*_amd64.snap --classic --dangerous
```
## Building the snap using LXD
This file has been truncated. show original
You need snapcraft installed and lxd tho