The SLATE platform uses Kubernetes as its container orchestration system. This section we’ll install the base Kubernetes software components.
The Kubernetes repository can be added to the node in the usual way:
cat <<EOF > /etc/yum.repos.d/kubernetes.repo
[kubernetes]
name=Kubernetes
baseurl=https://packages.cloud.google.com/yum/repos/kubernetes-el7-x86_64
enabled=1
gpgcheck=1
repo_gpgcheck=0
gpgkey=https://packages.cloud.google.com/yum/doc/yum-key.gpg https://packages.cloud.google.com/yum/doc/rpm-package-key.gpg
EOF
repo_gpgcheck=0
, see Google’s Known Issues page.The Kubernetes install includes a few different pieces: kubeadm
, kubectl
, and kubelet
.
kubeadm
is a tool used to bootstrap Kubernetes clusterskubectl
is the command-line tool needed to interact with and control the clusterkubelet
is the system daemon that allows the Kubernetes api to control the cluster nodesInstall and enable these components:
KUBE_VERSION=1.24.* && \
yum install -y kubeadm-${KUBE_VERSION} kubectl-${KUBE_VERSION} kubelet-${KUBE_VERSION} --disableexcludes=kubernetes
Finally, enable kubelet
:
systemctl enable --now kubelet
At this point the kubelet
will be crash-looping as it has no configuration. That is okay for now.