Difficulty: Beginner
Estimated Time: 10 minutes

Installing Grey Matter in a Kubernetes cluster

In this scenario, we'll walkthrough the process of installing Greymatter into a Kubernetes cluster by cloning the necessary helm-charts from a git repo.


There you have it, we've successfully installed Grey Matter.

How to Install Greymatter

Step 1 of 4

Step 1

Configure Kubernetes on the Master Node

Kubernetes is not configured by default but setting it up is fairly trivial. On the master node run the following command to initialize the control-plane:

kubeadm init --kubernetes-version $(kubeadm version -o short)

Configure Kubernetes on the Compute Node

The last line printed by the previous command can be executed from other compute nodes to join them to the cluster. Copy that command into the terminal for the compute node (i.e., node01) and press return.

Configure Kubernetes Tools on the Master Node

In this tutorial, we will be executing non-administrative commands on the master node. Since the master is not configured for this access pattern, we'll copy the administration configuration usually reserved for kubeadm into the expected location for other Kubernetes tools (e.g., kubectl and helm).

mkdir .kube && cp /etc/kubernetes/admin.conf .kube/config

Define a Network Policy

In order for pods within our cluster to communicate with each other, we first need to define a Network Policy. We will fetch and install a stock Network Policy from Weave based on our version of kubectl.

kubectl apply -f "https://cloud.weave.works/k8s/net?k8s-version=$(kubectl version | base64 | tr -d '\n')"

Terminal Host 2