Skip to content
0:00 / 0:00

#kubernetes#kubernetesthehardway#virtualbox

Install Kubernetes from Scratch [1] - Pre-requisites to deploy a Kubernetes cluster

KodeKloud

503K subscribers • 5 videos on Hallway

YouTube

Intermediate. Assumes working knowledge.

198K views6 years ago1 recommendation

Cloud and DevOpsKubernetesDocker and containers

Mumshad Mannambeth explains the pre-requisites for deploying a local Kubernetes cluster from scratch using VirtualBox.

💻GitHub repository link: github.com/mmumshad/kubernetes-the-hard-way Credits: github.com/kelseyhightower/kubernetes-the-hard-way Check out the link to this repository in the resources section. This is a fork of the original one developed by Kelsey Hightower. That was for deploying a Kubernetes cluster on GCP. So I forked it and modified it to be deployed on a VirtualBox environment on local machine. I have also updated it to use the latest stable version of kubernetes as of this recording, which is v1.13. I have also added some additional details on TLS bootstrapping a kubelet and end-to-end tests. I have recorded the differences between the original and this in a file on this repo. You can perform these on windows, Linux or Mac systems. It doesn't matter what OS you are using. As long as its 64 bit, and virtualization is enabled, you should be good. The first step is to clone this repository. So you must have git for this. So run the git clone command. Copy the git repository URL from GitHub and paste it here. Once cloned CD into the cloned directory. The reason we cloned this git repository is that it has the scripts necessary to deploy the required infrastructure within it, that we will use in the next demo. We will now look at the pre-requisites for this exercise. As I said before, you may follow these instructions to deploy a kubernetes environment from scratch on a local laptop, or a physical or virtual machine in your environment. Whatever system you choose should have virtualization capability and sufficient CPU, Memory and Disk Resources. I have specified 8 GB as minimum RAM. We plan to allocate a memory of 1 GB to each master node and 500 MB to the worker and load balancers. But it depends on the memory consumption on your system as well. So a higher RAM will always help. Regarding disk space 50 to 100 GB of free space would be good. Just to show you the system I am using: I have a Intel i7-6500U CPU @ 2.5GHz with 2 cores and 4 Logical processors. And a memory of 32 GB. The next step is to install Virtual Box. Click on this link to go to the VirtualBox download page. As you can see it is supported on almost any platforms, windows, OSX, Linux or Solaris. Download the appropriate package and install VirtualBox. I have virtual box installed already. I use version 5.2.6 The next step is to install Vagrant. Vagrant is used to automate the deployment of virtual machines, in our case on VirtualBox. Again click on this link to go to the Vagrant site. Download the right version for your OS. I have it already installed. I am at version 2.1.1. We now have our environment ready to begin deployment. Well that's it for this demo and I will see you in the next.

Why it's here

1 person recommends this

What people say. Recommended as a practical guide to setting up Kubernetes the hard way on a local machine.

u/sek10ngin r/kubernetes • Recommends

…nk: https://kodekloud.com/courses/enrolled/666207 * Additional exercise (in a game format) to go for, I especially found "Pento" challenge good practice for CKA. Issue with these practice tests are that they are using older version of Kubernetes, so I need to figure out some syntax different. * **Kubernetes the hard way** (**6/10**) * Link: [video * I done Kubernetes the hard way (KodeKloud version) once, I found it not as useful as people say it is with regards to the CKA exam. It is definitely useful in terms of understanding what makes up Kubernetes, but that is knowledge not applicable in terms of exam. * I recommend doing it once for your own knowledge gain, not for the ex…