Installation
This document describes how to install OpenFunction.
Prerequisites
You need to have a Kubernetes cluster.
You need to ensure your Kubernetes version meets the requirements described in the following compatibility matrix.
OpenFunction Version | Kubernetes 1.17 | Kubernetes 1.18 | Kubernetes 1.19 | Kubernetes 1.20+ |
---|---|---|---|---|
HEAD | √* | √* | √ | √ |
v0.6.0 | √* | √* | √ | √ |
v0.5.0 | √* | √* | √ | √ |
v0.4.0 | √ | √ | √ | √ |
Note
OpenFunction has added the function ingress in release-0.5, which means that:
- You have to install OpenFunction in Kuberenetes v1.19 or later if you enable this feature.
- You can still use OpenFunction in Kubernetes v1.17—v1.20+ without this feature enabled.
For more information about OpenFunction components compatibility with Kubernetes, refer to Component Compatibility Matrix.
Install OpenFunction
Option 1: Install with helm chart (recommended)
Requirements
- Kubernetes version:
>=v1.20.0-0
- Helm version:
>=v3.6.3
Steps to install OpenFunction helm charts
Run the following command to add the OpenFunction chart repository first:
helm repo add openfunction https://openfunction.github.io/charts/ helm repo update
Then you have several options to setup OpenFunction, you can choose to:
Install all components:
kubectl create namespace openfunction helm install openfunction openfunction/openfunction -n openfunction --version 0.1.0
Install Serving only (without build):
kubectl create namespace openfunction helm install openfunction --set ShipwrightBuild.enabled=false --set TektonPipelines.enabled=false openfunction/openfunction -n openfunction --version 0.1.0
Install Knative sync runtime only:
kubectl create namespace openfunction helm install openfunction --set Keda.enabled=false openfunction/openfunction -n openfunction --version 0.1.0
Install OpenFunction async runtime only:
kubectl create namespace openfunction helm install openfunction --set IngressNginx.enabled=false --set KnativeServing.enabled=false openfunction/openfunction -n openfunction --version 0.1.0
Note
For more information about how to install OpenFunction with Helm, see Install OpenFunction with Helm.Run the following command to verify OpenFunction is up and running:
kubectl get po -n openfunction
Option 2: Install with CLI
Run the following command to download
ofn
, the CLI of OpenFunction.wget -c https://github.com/OpenFunction/cli/releases/latest/download/ofn_linux_amd64.tar.gz -O - | tar -xz
Run the following commands to make
ofn
executable and move it to/usr/local/bin/
.chmod +x ofn && mv ofn /usr/local/bin/
Run the following command to install OpenFunction.
ofn install --all
Uninstall OpenFunction
Helm
If you installed OpenFunction with Helm, run the following command to uninstall OpenFunction and its dependencies.
helm uninstall openfunction -n openfunction
Note
For more information about how to uninstall OpenFunction with Helm, see Uninstall OpenFunction with Helm.CLI
If you installed OpenFunction with CLI, run the following command to uninstall OpenFunction and its dependencies.
ofn uninstall --all
Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.