Giter Site home page Giter Site logo

k8s-homelab's Introduction

Kubernetes Setup Using Ansible and Vagrant

A complete local Kubernetes cluster with one master and two workers for testing purposes. Ansible playbooks will be used for provisioning.

Prerequisites

Vagrant : https://www.vagrantup.com/downloads.html
VirtualBox : https://www.virtualbox.org/wiki/Downloads
Ansible: https://docs.ansible.com/ansible/latest/installation_guide/intro_installation.html

Setup overview

Vagrant up will deploy one master node and two workers using Ubuntu Xenial with 2 CPUs and 1GB of memory with static IPs:

  • master 172.16.30.2
  • node-1 172.16.30.3
  • node-2 172.16.30.4
vagrant status
Current machine states:

master                    running (virtualbox)
node-1                    running (virtualbox)
node-2                    running (virtualbox)

Ansible playbooks will provision all necessary packages, initialize the master and join the nodes to Kubernetes cluster.

The kubernetes cluster have the following features by default:

  • Kubernetes control plane (1.13.1)
  • Calico networking CNI v3.7
  • kubectl bash completion

To setup this cluster:

https://github.com/melina/k8s-homelab.git
cd k8s-homelab
vagrant up

Kubernetes cluster should be up and running:

kubectl get nodes
NAME     STATUS   ROLES    AGE    VERSION
master   Ready    master   115m   v1.13.1
node-1   Ready    <none>   87m    v1.13.1
node-2   Ready    <none>   84m    v1.13.1

k8s-homelab's People

Contributors

melina avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.