user4626554
user4626554

Reputation:

Installing OpenFaas on local Kubernetes cluster

so I'm attempting to install OpenFaaS on a local Kubernetes cluster made with Docker Desktop. I'm brand new to both OpenFaaS and Kubernetes so any help is appreciated!

I'm following the interactive tutorial here.

I have installed Helm, the OpenFaaS Cli, FaaS-netes, and followed everything in this tutorial up to page 4. On that page I am told to run this:

helm upgrade openfaas --install openfaas/openfaas --namespace openfaas --set functionNamespace=openfaas-fn --set operator.create=true --set basic_auth=true --set rbac=false --set faasIdler.dryRun=false --set faasIdler.inactivityDuration=10s

When I run that I get this error:

UPGRADE FAILED
Error: "openfaas" has no deployed releases
Error: UPGRADE FAILED: "openfaas" has no deployed releases

I'm really lost at what I am supposed to do here. Did I miss a step in the tutorial? How do I deploy a release?

Any help would be really appreciated.

Upvotes: 1

Views: 461

Answers (2)

Damith Udayanga
Damith Udayanga

Reputation: 924

Deploy the Chart with arkade (fastest option)

The arkade install command installs OpenFaaS using its official helm chart, but without using tiller, a component which is insecure by default. arkade can also install other important software for OpenFaaS users such as cert-manager and nginx-ingress. It's the easiest and quickest way to get up and running.

You can use arkade to install OpenFaaS to a regular cloud cluster, your laptop, a VM, a Raspberry Pi, or a 64-bit ARM machine.


# For MacOS / Linux:
curl -SLsf https://dl.get-arkade.dev/ | sudo sh

# For Windows (using Git Bash)
curl -SLsf https://dl.get-arkade.dev/ | sh

Install the OpenFaaS app If you're using a managed cloud Kubernetes service which supplies LoadBalancers, then run the following:

arkade install openfaas --load-balancer

Note: the --load-balancer flag has a default of false, so by passing the flag, the installation will request one from your cloud provider.

If you're using a local Kubernetes cluster or a VM, then run:

arkade install openfaas

After the installation you'll receive a command to retrieve your OpenFaaS URL and password.

Other options for installation are available with arkade install openfaas --help

For cloud users run kubectl get -n openfaas svc/gateway-external and look for EXTERNAL-IP. This is your gateway address.

Upvotes: 0

user4626554
user4626554

Reputation:

To fix this, delete the openfaas entry from helm using helm del —purge and try remaking it. Everything worked the second try.

Upvotes: 2

Related Questions