Skip to content

jmlw/kubernetes-vagrant

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Vagrant based Kubernetes Cluster

This is intended to be a homelab testbed for Kubernetes

This is not intended to be a production environment, and may be vulernable.

Setup

  • Install Vagrant and Virtualbox (*nix or OSX/MacOS based system)
  • Clone and cd into this repo
  • Configure Vagrantfile to meet your needs and to fit your network setup
  • Run vagrant up, then get a coffee while the VMs are provisioned

It is also possible to provision additional nodes by adding a new block to the servers variable:

servers = [
    {
        :name => "k8s-node-3",
        :type => "node",
        :box => "ubuntu/xenial64",
        :box_version => "20180831.0.0",
        :eth1 => "192.168.0.213",
        :mem => "1024",
        :cpu => "1",
        :mac => "0800275f7018"
    }
]

Cleanup

Run vagrant destroy -f to forcibly remove VMs and related resources

Configuration

The VMs provisioned by this vagrant file are configured to run in bridged mode, so they will be assigned IP Addresses by your local DHCP server. It's recommended that you set a static IP in your network configuration to ensure each node is able to reliable communicate with the Master. Each node has a defined MAC address in the server configuration block. It is not required to set static IPs for nodes.

Each node can be configured independently by modifying the object defined in the servers array.

Other notes:

This configuration uses the Kubernetes Datastore API to configure Calico, not etcd


Disclaimer

This has only been tested on a Ubuntu Xenial based system.

There is no warranty or guarentee supplied with any code or configuration in this repository.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published