MacOS Installation

 

Install Fluvio CLI

The Fluvio CLI (command-line interface) is an all-in-one tool for setting up, interacting, and managing with Fluvio clusters.

Install the Fluvio CLI by running the following command:

curl -fsS https://packages.fluvio.io/v1/install.sh | bash
 

Required Packages for Local Fluvio cluster

  1. Docker
  2. Minikube
  3. Kubectl
  4. Helm

If you have docker, kubectl, helm, and minikube already set up, then continue to steps for running a local Fluvio cluster.

 

Install Docker

Docker is a container engine which is used by Minikube to run a local Kubernetes cluster.

Download and install Docker Desktop for Mac. Select the version that matches your chipset (Intel or Apple).

 

Install Minikube

Minikube is a tool for running a local Kubernetes cluster

Install minikube with the Brew Package Manager by running the following in a terminal window:

$ brew install minikube

Or follow the instructions at the Minikube installation page to download and install minikube on MacOS.

 

Start a Kubernetes cluster

Start a Kubernetes cluster locally with minikube by running the following in a terminal window:

$ minikube start
 

Install Kubectl

kubectl is the Kubernetes command-line tool. It is used to run commands against Kubernetes clusters.

Install kubectl with the Brew Package Manager by running the following in a terminal window:

$ brew install kubectl 

Or follow the instructions at the kubectl installation page and follow the instructions to download and install kubectl on MacOS.

 

Install Helm

Helm is the package manager for Kubernetes.

Install helm with the Brew Package Manager by running the following in a terminal window:

$ brew install helm 

Or follow the instructions at the helm installation page and follow the instructions to download and install helm on MacOS.

 

Start Fluvio cluster

You can start a Fluvio cluster by running fluvio cluster start.

If this is your first time starting a cluster in your session, be prepared to enter your password.

$ fluvio cluster start --local
 

Verify cluster is running

We can check the status of the SPUs in the cluster with the following command:

$ fluvio cluster spu list
 ID    NAME             STATUS  TYPE      RACK  PUBLIC          PRIVATE
 5001  custom-spu-5001  Online  "custom"   -    localhost:9010  localhost:9011
 

Hello, Fluvio!

Congratulations, you’ve successfully installed Fluvio on your local machine!

Let’s use the Fluvio CLI to play with some basic functionality.

The first thing we need to do is create a topic.

$ fluvio topic create greetings
topic "greetings" created

Now that we have a topic, we can produce some messages!

Use the following command to send a message to the greetings topic:

$ echo "Hello, Fluvio" | fluvio produce greetings

Finally, we can consume messages back from the topic

$ fluvio consume greetings -B -d
Consuming records from the beginning of topic 'greetings'
Hello, Fluvio

Way to go! You’re well on your way to writing real-time distributed apps with Fluvio!

Next, check out our Tutorials page to see real-world examples of Fluvio in action.

 

Related Topics



If you run into any problems along the way, make sure to check out our troubleshooting page to find a fix.