Kubernetes Cluster

I installed kubernetes on my rockpi Cluster 4x rockpi 4b + Corsair mp300 m.2 nvme pcie gen.3 x2 SSD 240GB

Starting to test it today.

Here The Install guide for kubernetes

#!/bin/sh
sudo apt-get install -y curl
sudo apt-get install -y apt-transport-https

Install Docker

curl -sSL get.docker.com | sh &&
sudo usermod rock -aG docker

Disable Swap

sudo dphys-swapfile swapoff &&
sudo dphys-swapfile uninstall &&
sudo update-rc.d dphys-swapfile remove

echo Adding " cgroup_enable=cpuset cgroup_enable=memory" to /boot/cmdline.txt
sudo cp /boot/cmdline.txt /boot/cmdline_backup.txt
orig="$(head -n1 /boot/cmdline.txt) cgroup_enable=cpuset cgroup_enable=memory"
echo $orig | sudo tee /boot/cmdline.txt

Add repo list and install kubeadm

curl -s https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key add - &&
echo “deb http://apt.kubernetes.io/ kubernetes-xenial main” | sudo tee /etc/apt/sources.list.d/kubernetes.list &&
sudo apt-get update -q &&
sudo apt-get install -qy kubeadm

sudo apt install docker.io
sudo systemctl unmask docker.service
sudo systemctl start docker
sudo systemctl enable docker

#https://kubernetes.io/docs/reference/kubectl/cheatsheet/
#http://docs.pachyderm.io/en/latest/getting_started/local_installation.html#pachctl
#https://www.techrepublic.com/article/how-to-quickly-install-kubernetes-on-ubuntu/

1 Like