Currently tested on Docker For Desktop built-in kubernetes.
Install both kubectl
and helm
.
kubectl
should be configured to point to your local kubernetes cluster.
Create two namespaces for openfaas which are openfaas
and openfaas-fn
:
$ kubectl apply -f https://raw.githubusercontent.com/openfaas/faas-netes/master/namespaces.yml
Add the openfaas repo in helm:
$ helm repo add openfaas https://openfaas.github.io/faas-netes/
Download the chart so we could modify the values.yaml
to be able to configure the openfaas deployment for local developent:
$ helm fetch openfaas/openfaas
The above command will download a .tgz
file extract it and modify the following values in values.yaml
inside the directory:
# values.yaml
rbac: false
basic_auth: false
faasnetesd:
imagePullPolicy: "IfNotPresent"
Then install openfaas:
$ helm install openfaas/openfaas -f values.yaml --name openfaas-dev --namespace openfaas
A gateway-external
NodePort
service will be created for port 31112
. To access openfaas ui visit
http://localhost:31112
on your machine.