Giter Club home page Giter Club logo

k8s-vagrant-centos's Introduction

k8s-vagrant-centos

enter image description here

About...

This setup is used to create kubernetes cluster on local laptop / desktop using vagrant - with this we can create a two node cluster setup which contains one master and one worker node with one single command.

Table of Contents

What are the prerequisites ?

  • Git
  • Vagrant
  • Oracle Virtual Manger
  • Virtualization needes to be enabled in System BIOS
  • Minimum laptop/desktop configuration - 32GB RAM / 8CPU (not to worry base OS will balance the cpu need on time sharing model), 80GB hdd disk space

How to deploy kubernetes cluster ?

Default settings:Vagrantfile

VM:
  password: kubeadmin
  master:
    ip: 100.10.10.100
    cpus: 2
    memory: 2048
    vmname: kmaster
    hostname: kmaster.example.com
  worker1:
    ip: 100.10.10.101
    cpus: 3
    memory: 16384
    vmname: kworker1
    hostname: kworker1.example.com

By running the below command kubernetes cluster will be created with 2 Centos VM's installed.

  • vagrant up

What are the addons provided ?

helm / kubernetes-dashboard / nfs-volume-provisioner

What are the VM's configured ?

By default below are the IP Addresses that will be configured for the VM's

Name IP OS RAM CPU
kmaster 100.10.10.100 CentOS7 2 GB 2
kworker1 100.10.10.101 CentOS7 16GB 3

How to access Kubernetes Dashboard ?

The Kubernetes Dashboard can be accessed via the below URL without any changes from your host machine

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

How to access Vagrant VM's ?

The Vagrant VM can be accessed in two ways

  1. Login through vagrant ssh
  • $ cd k8s-vagrant-centos/provisioning
  • $ vagrant ssh kmaster
  • $ vagrant ssh kworker1
  1. Login through putty
  • 100.10.10.100 / 100.10.10.101 [Username/Password:vagrant/vagrant (OR) root/kubeadmin]

How to stop Vagrant VM's ?

  • $ cd k8s-vagrant-centos/provisioning
  • $ vagrant halt

How to restart Vagrant VM's ?

  • $ cd k8s-vagrant-centos/provisioning
  • $ vagrant up

How to destroy Vagrant VM's ?

  • $ cd k8s-vagrant-centos/provisioning
  • $ vagrant destroy

k8s-vagrant-centos's People

Contributors

s-u-b-h-a-k-a-r avatar nekhilkotha avatar pankajpreet avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.