Sec : 3 : Abs:Begginers : Setup Kubernetes : Setup Introduction
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Various option in building a Kubernetes cluster .
There a lot of ways to setup Kubernetes
- We can setup locally on our laptops or on virtual machines using solutions like Minicube, or Micro k8s,
- The kubeadm tool is used to Bootstrap and manage production grade kubernetes clusters .
There are also hosted solutions for Kubernetes cluster . In the cloud environment
We also have a demo of provisioning kubernetes cluster on GCP . So you may really follow any of these approaches.
As part of this course we give you a real Kubernetes cluster right in your browser with a click of a button without having to set anything up.
We will use the Mini-Kube option which is the easiest way to get started with the Kubernetes system .
Before we head to the demo , it is a good understand how it works , earlier we spoke about the components of Kubernetes that make up the master and worker node. such as the api server the key value store.
It will take a loads of time to setup all of these components on various systems individually by ourselves
mini cube bundles all of these different components.
Minikube combines all of these different components into a singe image.
so we have a single node per-configured single node Kubernetes cluster so that we can get started in a matter of minutes .
You can get started in a matter of minutes. The whole bundle is packaged into an ISO image . It is available online for download . Now you don't have to do it yourself
Minicube provides you a command line utility that will automatically download the ISO and deploy it into a virtualization platform such as Oracle virtual box or VM Ware fusion . So you should have a Hypervisor installed on your system . For windows you can use virtual box or Hyper-V and for Linux you can use your VirtualBox or KVM. And to finally to interact with the Kubernetes cluster you must have the Kernel Kubernetes command line tool also installed in your machine .
-----
- The upcoming demo is completely optional, unless you want to setup a local environment on your laptop. Our hands-on labs will be sufficient for you to practice.
- Some links used in the upcoming demo may have changed. Please find the latest links to the documentation topics below:
- Install MiniKube: https://kubernetes.io/docs/tasks/tools/install-minikube/
- VirtualBox: https://www.virtualbox.org/wiki/Downloads
- MiniKube Download page for Windows: https://github.com/kubernetes/minikube/releases
- While using Minikube with Virtualization technologies, specify the --vm-driver option like this:
- minikube start --vm-driver=<driver_name>
- More about it here: https://kubernetes.io/docs/setup/learning-environment/minikube/#specifying-the-vm-driver
-----
Go to kunernetes.io website -- > Documents --> Tasks -->Install Tools
Now before installing Mini Cube, we need to install Kubectl utility . Kubectl command is what we will use to manage kubernetes resources and our cluster after it is setup using mini-cube and installing kubectl utility before installing minicube allows minicube to configure the the kubectl utility to work with the cluster
Kubectl should work with multiple utilities and clusters at the same
To start with we are going to install Kubectl Utility on my Linux system and we are going ahead with the latest version.
[vagrant@centos7 ~]$ curl -LO https://dl.k8s.io/release/v1.26.0/bin/linux/amd64/kubectl --insecure
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 138 100 138 0 0 134 0 0:00:01 0:00:01 --:--:-- 134
46 45.7M 46 21.0M 0 0 886k 0 0:00:52 0:00:24 0:00:28 2789k
Comments
Post a Comment