- Tools
- Function Mesh Operator
Install Function Mesh Operator
This document describes how to install Function Mesh based on your application in Kubernetes.
Install Function Mesh
This section describes how to install Function Mesh through the install.sh
script or through the Helm.
Prerequisites
Before installing Function Mesh, ensure to perform the following operations.
- Kubernetes server 1.12 or higher.
- Create and connect to a Kubernetes cluster.
- Create a Pulsar cluster in the Kubernetes cluster.
- Deploy Pulsar Functions.
- Install Helm v3
- Install
kubectl
(v1.16 or higher), compatible with your cluster (+/- 1 minor release from your cluster). - (Optional) enable Role-based Access Control (RBAC).
Clone the StreamNative Function Mesh repository.
git clone https://github.com/streamnative/function-mesh.git cd function-mesh
Create the custom resource type.
This example defines a YAML file for Function Mesh v0.1.7.
curl -sSL https://github.com/streamnative/function-mesh/releases/download/v0.1.7/crd.yaml | kubectl create -f -
Install the Function Mesh Operator.
a. Create a Kubernetes namespace
function-mesh
. If no Kubernetes namespace is specified, thedefault
namespace is used.kubectl create ns function-mesh
b. Install Function Mesh Operator.
helm install function-mesh --values charts/function-mesh-operator/values.yaml charts/function-mesh-operator --namespace=function-mesh
Check whether Function Mesh is installed successfully.
kubectl get pods -l app.kubernetes.io/component=controller-manager
Output
NAME READY STATUS RESTARTS AGE function-mesh-controller-manager-696f6467c9-mbstr 1/1 Running 0 77s
Uninstall Function Mesh
Use the following command to uninstall Function Mesh through Helm.
helm delete function-mesh