Giter VIP home page Giter VIP logo

kube-dev-bootstrap's Introduction

kube-dev-bootstrap

vagrant configuration to deploy local kubernetes cluster

prerequisites

  1. install qemu/kvm https://help.ubuntu.com/community/KVM/Installation
  2. install virt-manager https://help.ubuntu.com/community/KVM/VirtManager
  3. install libvirt https://help.ubuntu.com/lts/serverguide/libvirt.html
  4. enable libvirtd daemon with sudo systemctl libvirtd
  5. create a storage pool with the name vagrant in virt-manager https://docs.fedoraproject.org/en-US/Fedora/18/html/Virtualization_Administration_Guide/sect-partbased-storage-pool.html
  6. install vagrant https://www.vagrantup.com/downloads.html

usage

  1. cd $YOUR_PROJECT_DIR
  2. git clone https://github.com/aakashRajur/kube-dev-bootstrap.git vagrant
  3. cd vagrant
  4. vagrant plugin install vagrant-env
  5. create an .env with allowed configs below
  6. vagrant up to start the VMs
  7. get kmaster's ip address with vagrant ssh-config
  8. scp -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no $KMASTER_IP_ADDRESS:/home/vagrant/.kube/config ~/.kube/config
  9. kubectl should be configured with the deployed cluster

environment variable

# allocated CPUs, should be less than 
# no of cores on your machines
KMASTER_CPUS=2
# memory in MBs
KMASTER_MEMORY=2048
# specify list bash files at Vagrantfile level
# comma separated, will be run in order of
# declaration
KMASTER_SCRIPTS=kmaster.sh

KWORKER_CPUS=1
# memory in MBs
KWORKER_MEMORY=1024
KWORKER_COUNT=2
KWORKER_SCRIPTS=kworker.sh

# specify list of comma separated  folders 
# in the format $HOST_LOCATION:$GUEST_LOCATION
SHARED_FOLDERS=../:/app

kube-dev-bootstrap's People

Contributors

aakash-rajur 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.