Difficulty: intermediate
Estimated Time: 15-20 minutes

In this scenario we will learn how to:

  • bootstrap a Kubernetes cluster using Kubeadm (setup compute, storage and network)
  • create a deployment for Couchbase startup containers
  • deploy Kubernetes dashboard

Techy-Friday - Kubernetes in nutshell

Step 1 of 8

Step 1 - Initialise Master

Kubeadm has been installed on the nodes. Packages are available for Ubuntu 16.04+, CentOS 7 or HypriotOS v1.0.1+.

The first stage of initialising the cluster is to launch the master node. The master is responsible for running the control plane components, etcd and the API server. Clients will communicate to the API to schedule workloads and manage the state of the cluster.


Pre-requisites: ssh node01

The command below will initialise the cluster with a known token to simplify the following steps.

kubeadm init --token=102952.1a7dd4cc8d1f4cc5

In production, it's recommend to exclude the token causing kubeadm to generate one on your behalf.

Bonus to save time

docker pull couchbase/server:enterprise-5.5.1 ; docker pull bauagonzo/cb-travel-sample:latest

curl -LO https://github.com/bauagonzo/katacoda-scenarios/raw/master/techy-friday-kubernetes/assets/couchbase/bin/cbopctl ; curl -LO https://github.com/bauagonzo/katacoda-scenarios/raw/master/techy-friday-kubernetes/assets/couchbase/bin/cbopinfo

chmod +x cbop* && mv cbop* /usr/bin

Terminal Host 2