GithubHelp home page GithubHelp logo

k8s-vagrant-virtual-box's Introduction

k8s, Vagrant, Virtual box

Create a local kubernetes cluster using virtualbox. A modification of the great work danielepolencic did in his gist. and LocusInnovations did in his modifications

Please use install-virtualbox-6-with-vagrant-in-ubuntu-mint gist if you need to install virtual box and the vagrant.

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 alias in vagrant home for kubectl...just use k

Open a shell and clone

$ git clone https://github.com/iamdamith/k8s-vagrant-virtual-box
$ cd iamdamith/k8s-vagrant-virtual-box

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 worker1
$ vagrant ssh worker2

If you are getting this error,

The IP address configured for the host-only network is not within the allowed ranges. Please update the address used to be within the allowed ranges and run the command again.

Address: 10.0.0.10 Ranges: 192.168.56.0/21

Valid ranges can be modified in the /etc/vbox/networks.conf file. For more information including valid format see:

https://www.virtualbox.org/manual/ch06.html#network_hostonly

Please create /etc/vbox/networks.conf and add

* 10.0.0.0/8 192.168.0.0/16 172.16.0.0/12

k8s-vagrant-virtual-box's People

Contributors

iamdamith 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.