Proxmox

(02) Kubernetes – Build Your Cluster



VIDEO CHAPTERS
0:00 What we will cover in this video
0:48 A brief overview – nodes and cluster
3:35 Create virtual machines
8:40 Configure VM
14:53 Adding additional packages
18:16 Prepare VM for container runtime
20:33 Install and configure containerd.io
26:58 Install Kubernetes Components
29:47 Configure VM for Kubernetes
33:11 Clone and configure VMs
39:37 Prepare the master node (control plane)
47:13 Finally – Initialize the cluster
52:48 Join the nodes to your cluster

In this video we are getting started and build our kubernetes cluster. We will build the VMs, configure these systems, setup the container runtime and join all nodes into the cluster.
The video is quite long so if you want to skip certain chapters please go ahead and jump to the time codes which are set in the video and described below.

Commands from the video (incomplete list; just the long ones for copy and pasting)
Time code: 14:17 (YOU MIGHT HAVE TO REPLACE THE › AND ‹ WITH THE ONES ON YOUR KEYBOARD SHOULD THAT COMMAND NOT WORK; YOUTUBE RESTRICTIONS ON SIGNS AND SYMBOLS IN THE DESCRIPTION)
cat ››/etc/hosts‹‹EOF
192.168.XXX.XXX k8s-master
192.168.XXX.XXY k8s-worker1
192.168.XXX.XXZ k8s-worker2
192.168.XXX.XXA k8s-worker3
192.168.XXX.XXB k8w-worker4
EOF

Time code: 18:35
cat ‹‹EOF | sudo tee /etc/modules-load.d/containerd.conf
overlay
br_netfilter
EOF

Time code: 19:35
cat ‹‹EOF | sudo tee /etc/sysctl.d/99-kubernetes-cri.conf
net.bridge.bridge-nf-call-iptables = 1
net.ipv4.ip_forward = 1
net.bridge.bridge-nf-call-ip6tables = 1
EOF

Time code: 21:43
curl -fsSL | sudo gpg –dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg

Time code: 22:38
echo “deb [arch=amd64 signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] $(lsb_release -cs) stable” | tee /etc/apt/sources.list.d/docker.list

Time code: 27:20
curl -fsSL | sudo gpg –dearmor -o /etc/apt/keyrings/kubernetes-apt-keyring.gpg

Time code: 27:42
echo ‘deb [signed-by=/etc/apt/keyrings/kubernetes-apt-keyring.gpg] /’ | sudo tee /etc/apt/sources.list.d/kubernetes.list

Docker and the Docker logo are trademarks or registered trademarks of Docker, Inc. in the United States and/or other countries. Docker, Inc. and other parties may also have trademark rights in other terms used herein.
Proxmox® is a registered trademark of Proxmox Server Solutions GmbH in the EU, the U.S., and other countries.
Kubernetes is a registered trademark of the Linux Foundation.



source

Related Articles

Leave a Reply

Your email address will not be published. Required fields are marked *

Back to top button