Installing Grey Matter in a Kubernetes cluster
In this scenario, we'll cover installing Grey Matter into a Kubernetes cluster
Launch a Grey Matter (2.0) Service Mesh
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:
kubeadm init --kubernetes-version $(kubeadm version -o short)
Configure Kubernetes on the Compute Node
The last line printed by the above command is a command that you can run on the compute nodes to join 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-administration 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.,
mkdir .kube && cp /etc/kubernetes/admin.conf .kube/config
Install a Network Policy Provider, so that the Master Node will become
kubectl apply -f "https://cloud.weave.works/k8s/net?k8s-version=$(kubectl version | base64 | tr -d '\n')"