Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/nfisher/k8smulti

multimode k8s vagrant cluster
https://github.com/nfisher/k8smulti

kubernetes kubernetes-setup vagrant

Last synced: 2 months ago
JSON representation

multimode k8s vagrant cluster

Awesome Lists containing this project

README

        

# k8smulti

Provides a multinode cluster on your local machine.

## Provides

- 1 x cache (1vcpu & 512MB ram)
- 1 x master (2vcpu & 2GB ram)
- 2 x worker nodes (2vcpu & 4GB ram)
- 1 x cache (1vcpu & 512MB ram)
- k8s v1.20.5.
- helm 3.x.
- API - 192.168.56.100:6443.
- kube config - k8smulti/config

## Required Software

- [Vagrant](https://www.vagrantup.com)
- [VirtualBox](https://www.virtualbox.org)

## Getting Started

1. Install the required software.
2. Run `vagrant up` to provision the nodes.
3. Run `vagrant ssh master` and check the master is ready with `kubectl get nodes -o wide`.
4. Run `vagrant ssh master`, check the nodes are ready with `kubectl get nodes -o wide`.

**Note**: Kubernetes config is available on the host in `/home/vagrant/.kube/config` on master or `config` in the projects root.

## Networking Overview

### Calico - CIDR Ranges

| Name | Network |
| -------------- | ---------------- |
| Host | 192.168.56.0/24 |
| Pods (default) | 10.217.0.0/16 |
| Pods (pool1) | 10.218.1.0/24 |
| Pods (pool2) | 10.218.2.0/24 |

## References

- [kube-router](https://github.com/cloudnativelabs/kube-router/blob/master/docs/index.md) - network overlay.
- [pod-toolbox](https://github.com/cloudnativelabs/kube-router/blob/master/docs/pod-toolbox.md#pod-toolbox) - useful for understanding network behaviour.