Minikube Installation

K8s Setup Requirements

  • 8 CPUs or more

  • 16GB of free memory

  • 150 GB of free disk space

  • Internet connection

  • Container or virtual machine manager, such as: Docker, Hyperkit, Hyper-V, KVM, Parallels, Podman, VirtualBox, or VMware Fusion/Workstation

Install kubectl

Download the latest Kubectl release with the command:

curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl"
chmod +x kubectl
sudo mv kubectl /usr/bin/

Test to ensure the version you installed is up-to-date:

kubectl version

Kubectl autocomplete

BASH

source <(kubectl completion bash) # setup autocomplete in bash into the current shell, bash-completion package should be installed first.
echo "source <(kubectl completion bash)" >> ~/.bashrc # add autocomplete permanently to your bash shell.

You can also use a shorthand alias for kubectl that also works with completion:

ZSH

Install Kubernetes using Minikube

To install the latest minikube stable release on x86-64 Linux using Debian package:

Start the Cluster

Start your minikube cluster with one master node using the following command.

We are using Flannel Plugin for Networking, NetworkPolicy Management, Traffic Management

Congratulations you now have a minikube cluster.

Enable Metrics Server

Worker Nodes Creation

Note: This as an optional step, you can safely skip this step if you do not require an additional worker node.

Now login to the Worker node and then pull all the latest images that are required.

You can use the same script that is used in the Master Server from the above section.

Verify nodes using the following command

Repeat the above steps, if you want to add more worker Nodes.

Kubectl context and configuration

Show Merged kubeconfig settings.

Display list of contexts

Last updated