vedmichv / k8s-vagrant-ansible

How to run k8s cluster on you machine in a few sec.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to run k8s cluster on you machine

The scripts based on the article: https://kubernetes.io/blog/2019/03/15/kubernetes-setup-using-ansible-and-vagrant/ with small changes.

Prerequisites

  • Vagrant
  • Ansible

My configuration MacBook, all of the prerequisites you can install use brew.

Define amount of worker nodes

in Vagrantfile:

N = 2

Start cluster

$ vagrant up

Connect to the master node

$ vagrant ssh k8s-master
$ kubectl get nodes
NAME         STATUS   ROLES    AGE    VERSION
k8s-master   Ready    master   7m     v1.16.3
node-1       Ready    <none>   4m1s   v1.16.3
node-2       Ready    <none>   78s    v1.16.3

About

How to run k8s cluster on you machine in a few sec.