Skip to content

Latest commit

 

History

History
37 lines (26 loc) · 1.05 KB

k8s.md

File metadata and controls

37 lines (26 loc) · 1.05 KB

Setting up a Kubernetes cluster

This project is, essentially, Kubernetes native. For most of the development and deployment we need a running, and well-configured, single-node k8s cluster. In this document we include instructions to set-it up and a troubleshooting guide.

In our kubernetes stack we need:

  • A modified containerd - required to run confidential containers
  • A working CNI plugin - required for pod-to-pod networking, we use Flannel.
  • A working service mesh - required for Knative's network programming, we use Kourier.

Setting up containerd

To compile our custom containerd, we can use the utility script:

inv containerd.build

and we can install it with:

inv containerd.install

Setting up the node

We use kubeadm to bootstrap the single-node cluster. To install all required binaries you may run:

inv k8s.install

All configuration files live under ../conf-files. There are a couple of things to bear in mind:

  • The Pod CIDR needs to be the same in the: containerd, flannel, and kubeadm config.