https://github.com/austingebauer/vagrant-k8s-cluster
Provisions a 3 node Kubernetes cluster in VirtualBox or VMWare Fusion using Vagrant.
https://github.com/austingebauer/vagrant-k8s-cluster
hashicorp kubernets vagrant
Last synced: 3 months ago
JSON representation
Provisions a 3 node Kubernetes cluster in VirtualBox or VMWare Fusion using Vagrant.
- Host: GitHub
- URL: https://github.com/austingebauer/vagrant-k8s-cluster
- Owner: austingebauer
- License: mit
- Created: 2020-03-06T16:59:59.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2020-03-24T05:28:00.000Z (almost 6 years ago)
- Last Synced: 2025-02-08T20:23:54.002Z (12 months ago)
- Topics: hashicorp, kubernets, vagrant
- Language: Shell
- Homepage:
- Size: 13.7 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# vagrant-k8s-cluster
Provisions a 3 node Kubernetes cluster in VirtualBox or VMWare Fusion using Vagrant.
## Prerequisites
The following software must be installed before use:
- [Vagrant](https://www.vagrantup.com/)
- [VirtualBox](https://www.virtualbox.org/) or [VMWare Fusion](https://www.vmware.com/products/fusion.html)
- [Kubectl](https://kubernetes.io/docs/tasks/tools/install-kubectl/)
## Usage
### Cluster Turnup
```
vagrant up --provider virtualbox
```
```
vagrant up --provider vmware_desktop
```
### Kubectl
#### Local Machine
A kubeconfig file name `config` will be written to the vagrant-k8s-cluster root
directory after cluster turnup is complete.
In order to use the `kubectl` from your local machine to talk to the kubernetes
API server, export the following environment variable:
```
export KUBECONFIG=$KUBECONFIG://vagrant-k8s-cluster/config
```
#### Master and Worker nodes
Kubectl is configured for use on both master and worker nodes after cluster turnup is
complete. Use `vagrant ssh` to get SSH remote access to one of the nodes in the cluster.