Need a local Kubernetes cluster to quickly get to tinkering? Worry not, it is a mere vagrant up
away.
This repository contains a cluster template to obtain a simple setup from scratch.
Two structure options:
- 1 master node, 3 worker nodes with disks (default)
- 1 master node, 3 worker nodes, 3 storage nodes with disks (enabled from the Vagrantfile)
The following need to be installed on the host machine:
- Vagrant
- Ansible
- VirtualBox as a default virtualization provider (libvirt is an alternative)
Start the cluster with the current Vagrantfile
config:
vagrant up
Access the cluster's master node:
vagrant ssh demo-master-01
To change configuration settings (i.e. number of worker nodes), edit the Vagrantfile as necessary. Options include:
- Asymmetrical storage
- Memory used for VMs by category
- Disabling CNI install
- Changing the virtualization provider
Turn off the cluster and clean up its resources:
vagrant destroy -f
- Uses the private subnet
192.168.56.0/24
for nodes and10.244.0.0/16
for pods - Each node equipped with 2 disks by default - either on workers or dedicated nodes
- Calico as a CNI
- Minimal other installs to leave room for your own!
libvirt
can be used as an alternate virtualization provider.
See Installing libvirt.
Name | |
---|---|
BIGOT Luka | luka@adaltas.com |
COTTART Kellian | kellian@adaltas.com |