You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
*[k3d](https://github.com/rancher/k3d) to create a [k3s](https://github.com/rancher/k3s) cluster. k3s is lightweight distribution of kubernetes from Rancher Labs.
34
-
*[arkade](https://github.com/alexellis/arkade) to install OpenFaaS, nats-connector, kubectl and faas-cl. `arkade` is simple CLI tool to install helm charts and apps to your cluster in one command.
33
+
Before we start we need a couple of tools to help us quickly set up our environment:
34
+
35
+
*[docker](https://docs.docker.com/get-docker/) - required to use KinD
36
+
*[kind](https://kind.sigs.k8s.io/docs/user/quick-start/) - a tool for running local Kubernetes clusters using Docker
37
+
*[arkade](https://github.com/alexellis/arkade) - official installer for OpenFaaS, that supports many other applications for Kubernetes
35
38
36
39
> Please make sure you have these tools installed before you proceed next.
37
40
38
41
## Install Components
39
42
40
-
#### Create a kubernetes cluster
43
+
#### Create cluster
41
44
42
-
`k3d` is a tool to run `k3s` in docker. Create a single node `k3s`cluster. You can also use other tools like [KinD](https://github.com/kubernetes-sigs/kind)
45
+
First thing we need is running Kubernetes cluster:
43
46
44
-
```
45
-
k3d create
47
+
```bash
48
+
kind create cluster
46
49
```
47
50
48
-
Follow instructions returned in the output of this command to configure KUBECONFIG to access the cluster using kubectl.
51
+
Wait for the installation to finish run this command to verify that the cluster is ready:
52
+
53
+
```bash
54
+
kubectl -n kube-system rollout status deployment/coredns
> Note: You can also build and deploy this function using the stack.yml and code present in nats-connector repository. But for simplicity, I am using pre built and published images of these functions.
119
+
> Note: You can also build and deploy this function using the stack.yml and code present in nats-connector repository.
120
120
121
121
## Verify the installation
122
122
Invoke `publish-message` function to publish a test message
@@ -143,7 +143,7 @@ faas-cli logs receive-message
143
143
```
144
144
145
145
## What Next ?
146
-
* Do you have a cool "eventdriven" use case you want to share? Let us know and become a guest blogger!
146
+
* Do you have a cool "event-driven" use case you want to share? Let us know and become a guest blogger!
147
147
148
148
* If you are new to OpenFaaS, I would recommend you trying [OpenFaaS workshop](https://github.com/openfaas/workshop) .
0 commit comments