Posts

Showing posts from November, 2020

How To Access Kubernetes Dashboard Token

Image
Before diving into the  Kubernetes dashboard , just have a glimpse over what the heck is Kubernetes.  Kubernetes  is an open-source system automating application deployment, scaling, and management. It was originally designed by Google and is also recognized as K8s. The developers mainly utilize this tool to manage the containers across the public, private cloud environment. With the private cloud environment, we meant that cloud deployment is where you maintain your own servers and infrastructure that mainly hosts your applications and the data as well.     Uses of Kubernetes Dashboard The dashboard provides an overview of the pods/clusters that runs on your machine. Moreover, it tells the creation and modification of individual Kubernetes resources, eg. deployments, jobs, etc. It provides accurate information on the state of Kubernetes resources in your cluster, and on any errors that may have occurred. $ kubectl apply -f https://raw.githubusercontent.com/kubernetes/dashboard/v1.10.1

Beginner’s Guide To Setup Kubernetes

Image
Steps to install Kubernetes Cluster Requirements The major requirements are stated below regarding the setup process. Master: 2 GB RAM 2 Cores of CPU Slave/ Node: 1 GB RAM 1 Core of CPU 1.Install Kubernetes The below steps mentioned to be executed on both the master and node machines. Let’s call the master as ‘kmaster‘ and node as ‘knode‘. 1.1 Change to root: Here, the changing root has been applied because the sudo provides permission to set up Kubernetes and to avoid the permission process we have changed the root.‌ $ sudo su # apt-get update This command used to update a system. 1.2 Turn Off Swap Space: Kubernetes doesn't support "swap". So we have to apply the below command to turn off the swap space. # swapoff -a 1.3 Fstab action After that, you need to open the ‘fstab’ file and comment out the line which has a mention of a swap partition. # nano /etc/fstab Press ‘ Ctrl+X ’, after that press ‘ Y ’ and then press  ‘Enter’  to save the file. 1.4 Update The Hostnames