Implementing serverless functions using Knative Serving
To start building our simple use cases for serverless and event-driven use cases, we have to install Knative with Serving, Eventing, channels, and brokers. In this case, we are going to use the basic options using in-memory channels and Knative Eventing Sugar Controller, which creates Knative resources based on labels in your cluster or namespace. So, let’s start installing Knative Serving in the next section.
Installing Knative Serving
In this section, we are going to start installing Knative Serving, which will be used to implement serverless functions. Let’s follow the next steps to install Knative Serving:
- Install the Knative CLI with the following command:
$ brew install kn
To upgrade your current Knative binary, run the following:
$ brew upgrade kn
- Install the Knative Serving CRDs to install the serving components:
$ kubectl apply -f https://github.com/knative/serving/releases...