Skip to content

brucmod/lab_demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Lab_demo_version 1.1

The vagrant file will do the following:

  1. Provision all local VMs using VirtualBox
  2. Patch the OS
  3. Install Docker
  4. Install k8s control plane
  5. Initialize cluster with Flannel CIDR block & install Flannel
  6. Join the nodes to the master
  7. Create and copy the SSH key to all machines so you can SSH to any node from the Master. Add names & IPs to the local hosts file on each master and node. Create alias in vagrant home for kubectl...just use k
  8. Make required Ubuntu OS mods for the cluster to function properly

Dependencies

You should install VirtualBox and Vagrant before you start.

Open a shell and install the vagrant disksize plugin:

$ vagrant plugin install vagrant-disksize

Make sure git is installed

Instal git if you don't already have it.

Open a shell and clone

$ git clone https://github.com/brucmod/lab_demo
$ cd lab_demo

Starting the cluster

You can create the cluster with:

$ vagrant up

Clean up

You can delete the cluster with:

$ vagrant destroy -f

SSH and other Commands

SSH to Master and other Nodes:

$ vagrant ssh master
$ vagrant ssh node1
$ vagrant ssh node2
$ vagrant ssh node3

Get the status of the Nodes:

$ k get nodes -o wide
NAME     STATUS   ROLES    AGE     VERSION   INTERNAL-IP   EXTERNAL-IP   OS-IMAGE             KERNEL-VERSION      CONTAINER-RUNTIME
master   Ready    master   16m     v1.17.4   10.0.0.10     <none>        Ubuntu 18.04.4 LTS   4.15.0-88-generic   docker://19.3.6
node1    Ready    <none>   11m     v1.17.4   10.0.0.11     <none>        Ubuntu 18.04.4 LTS   4.15.0-88-generic   docker://19.3.6
node2    Ready    <none>   6m31s   v1.17.4   10.0.0.12     <none>        Ubuntu 18.04.4 LTS   4.15.0-88-generic   docker://19.3.6
node3    Ready    <none>   102s    v1.17.4   10.0.0.13     <none>        Ubuntu 18.04.4 LTS   4.15.0-88-generic   docker://19.3.6

SSH to other Nodes in the cluster from the Master:

$ ssh node1
$ ssh node2
$ ssh node3

once all 4 nodes are up - ssh into master node and then download demo repo git clone http://github.com/brucmod/lab_demo_post cd lab_demo_post

run demos in order in kubernetes folder and playbooks folder

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages