GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - s-u-b-h-a-k-a-r/k8s-installation-ubuntu: This repository is used to create Kubernetes Cluster with 8 simple steps on bare VM’s

BranchesTags
Open more actions menu

Latest commit

 

History

8 Commits
8 Commits

Folders and files

NameName
Last commit message
Last commit date
provisioning
provisioning
 
 
README.md
README.md
 
 
_config.yml
_config.yml
 
 

Repository files navigation

k8s-installation-ubuntu

enter image description here

About...

This repository is used to create Kubernetes Cluster using 8 simple steps on bare VM's

Table of Contents

  • What are the pre-requisites ?
  • What are the VM's provisioned ?
  • How to deploy kubernetes cluster ?
  • How to access Kubernetes Dashboard ?
  • How to install NFS Server ?
  • What are the addons provided ?

What are the pre-requisites ?

  • Git

What are the VM's provisioned ?

Note: We are not going to create any VM's during this process. User is expected to have VM's before proceeding with this repository

Below is the example configuration that we are going to refer through out this repository.

Name IP OS RAM CPU
k8s-master 100.10.10.100 Ubuntu 18.04 4GB 4
k8s-worker-1 100.10.10.101 Ubuntu 18.04 16GB 4
k8s-worker-2 100.10.10.102 Ubuntu 18.04 16GB 4
k8s-worker-3 100.10.10.103 Ubuntu 18.04 16GB 4

How to deploy kubernetes cluster ?

Checkout the code (git clone https://github.com/SubhakarKotta/k8s-installation.git)

Step 1

Update host names for all nodes

  • 100.10.10.100 (k8s-master)
  • 100.10.10.101 (k8s-worker-1)
  • 100.10.10.102 (k8s-worker-2)
  • 100.10.10.103 (k8s-worker-3)

Unix Command!!!

$ nano /etc/hostname

Step 2

Copy k8s-installation-ubuntu folder to all master/worker nodes

  • 100.10.10.100 (k8s-master)
  • 100.10.10.101 (k8s-worker-1)
  • 100.10.10.102 (k8s-worker-2)
  • 100.10.10.103 (k8s-worker-3)

Example copy to root folder and execution permissions can be applied by executing the below command.

Unix Command!!!

$ chmod +x -R k8s-installation-ubuntu

Step 3

Execute the below script on all master/worker nodes

  • 100.10.10.100 (k8s-master)
  • 100.10.10.101 (k8s-worker-1)
  • 100.10.10.102 (k8s-worker-2)
  • 100.10.10.103 (k8s-worker-3)

enter image description here

Before executing the below script please don't forget to change the IP's and Host Names as per your requirements in the below script

Unix Command!!!

$ k8s-installation-ubuntu/provisioning/prerequisites/install.sh

Step 4

Reboot all master/worker nodes

  • 100.10.10.100 (k8s-master)
  • 100.10.10.101 (k8s-worker-1)
  • 100.10.10.102 (k8s-worker-2)
  • 100.10.10.103 (k8s-worker-3)

Unix Command!!!

$ reboot

Step 5

Execute the below script only on master nodes

  • 100.10.10.100 (k8s-master)

Unix Command!!!

$ cd k8s-installation-ubuntu/provisioning/vm-master

$ ./install.sh

Step 6

Execute the below script on all worker nodes

  • 100.10.10.101 (k8s-worker-1)
  • 100.10.10.102 (k8s-worker-2)
  • 100.10.10.103 (k8s-worker-3)

enter image description here

Unix Command!!!

$ kubeadm token create --print-join-command

Before executing the below script please don't forget to change the token in the script. We can get the token by running the above command on master node IP

Unix Command!!!

$ cd k8s-installation-ubuntu/provisioning/vm-worker

$ ./install.sh

Step 7

Execute the below script only on master node IP to install HELM

  • 100.10.10.100 (k8s-master)

Unix Command!!!

$ cd k8s-installation-ubuntu/provisioning/helm

$ ./install.sh

Step 8

Verify k8s-installation is success by executing below two commands to see all the nodes and pods.

Unix Command!!!

$ kubectl get nodes

$ kubectl get pods -o wide --all-namespaces

How to access Kubernetes Dashboard ?

The Kubernetes Dashboard can be accessed via the below URL with your master node IP with the same port 30070

http://100.10.10.100:30070/#!/overview?namespace=_all

How to install NFS Server ?

Here we are going use master node IP as NFS Server IP instead of configuring separate node.

Execute the below command only on master node IP to install NFS-Client-Provisioner.

Note: Please don't forget to change nfs.server in the below unix command with your master node IP configured.

Unix Command!!!

$ helm install stable/nfs-client-provisioner --name nfs-client-provisioner --set nfs.server=100.10.10.100 --set nfs.path=/mnt/storage --set storageClass.defaultClass=true

What are the addons provided ?

  • kubernetes dashboard
  • helm

About

This repository is used to create Kubernetes Cluster with 8 simple steps on bare VM’s

Topics

k8sk8s-clusterk8s-installubuntuubuntu1804vagrant

Resources

Readme
Activity

Stars

8 stars

Watchers

2 watching

Forks

8 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402605 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.