80 likes | 99 Views
In this blog, we are going to provide you with how to make a connection between Local Systems and Kubernetes(k8s).
E N D
Beginner’s Guide to Setup Kubernetes we are going to provide you with how to make a connection between Local Systems and Kubernetes(k8s). Besides connection, our major focus would be on how to Install Kuberneteson the Linux system.
Steps to 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. $ sudosu # apt-get update This command used to update a system.
Install Kubernetes 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 -a1.3 Fstab action After that, you need to open the ‘fstab’ file and comment out the line which has mention of swap partition. # nano /etc/fstab
Installing the Kubernetes Dashboard 1.4 Update The Hostnames To change the hostname of both machines, run the below command to open the file and subsequently rename the master machine to ‘kmaster’ and your node machine to ‘knode’. # nano /etc/hostnamePress ‘Ctrl+X’, after that press ‘Y’ and then press ‘Enter’ to Save the file.
Kubernetes Dashboard Token Now open the below Kubernetes dashboard URL in a browser. http://localhost:8001/api/v1/namespaces/kube-system/services/https:kubernetes-dashboard:/proxy/. The given link will direct you to the Kubernetes dashboard. Here, to build a connection we need a token (key). And the key will be explained to you by the below commands.
Kubernetes Dashboard Token As mentioned in the below screenshot, that shows you to opt from those 2 options, i.e. Kubeconfig & Token. We prefer you to select token, and insert the key and proceed with the sign-in process. After the sign-in, it will show you the dashboard main page. On that page, we can see the node’s running stage, replicas, clusters, etc. and every action that we perform on a created object. It helps us to visualize every action of master and node.
Edge detection tutorial for beginners CONTACT US We serve in an industry built on trust and it takes years to build this trust. Trust can be achieved through proper communication, support, availability, experience and many more. Address: #D-258, FIFTH FLOOR, PHASE-8 A INDUSTRIAL AREA, MOHALI Tel:(+91) 8968488244 Site: https://blog.paradisetechsoft.com/installing-the-kubernetes-dashboard/