Installing Docker and Kubernetes

The SLATE platform uses Kubernetes as its container orchestration system, and Docker as the container run-time. In this section we’ll setup Docker and install the base Kubernetes software components.


We recommend using the Docker Community Edition runtime with Kubernetes and SLATE. It can be installed and activated like so:

# Add the yum-config-manager tool if you don't already have it
yum install yum-utils -y

# Add Docker stable repo to Yum
yum-config-manager --add-repo

# Install the latest version of DockerCE and containerd 
yum install docker-ce docker-ce-cli -y

# Enable Docker on reboot through systemctl
systemctl enable --now docker


The Kubernetes repository can be added to the node in the usual way:

cat <<EOF > /etc/yum.repos.d/kubernetes.repo

The Kubernetes install includes a few different pieces: kubeadm, kubectl, and kubelet. kubeadm is a tool used to bootstrap Kubernetes clusters, kubectl is the command-line tool needed to interact with and control the cluster, and kubelet is the system daemon that allows the Kubernetes api to control the cluster nodes. To install and enable these components:

# Install the three necessary Kubernetes components
yum install -y kubeadm kubectl kubelet --disableexcludes=kubernetes

# Enable Kubelet through systemctl.
systemctl enable --now kubelet

At this point the kubelet will be crash-looping as it has no configuration. That is okay for now.

Next Page