eriknyk / vagrant-ansible-kubernetes

Combination of Vagrant and Ansible to spin up a Kubernetes cluster

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

vagrant-ansible-kubernetes

Combination of Vagrant and Ansible to spin up a Kubernetes cluster

Prerequisites

  • Vagrant
  • Ansible

Define amount of nodes

in Vagrantfile:

N = 2

Spin up cluster

$ vagrant up

Verify on master

$ vagrant ssh k8s-master
$ kubectl get nodes
NAME         STATUS   ROLES    AGE     VERSION
k8s-master   Ready    master   12m     v1.18.0
node-1       Ready    <none>   6m22s   v1.18.0
node-2       Ready    <none>   3m39s   v1.18.0

About

Combination of Vagrant and Ansible to spin up a Kubernetes cluster

License:Apache License 2.0