Giter Club home page Giter Club logo

k8s-kubespray's Introduction

About project

This project is intended to simplify the deployment of Kubernetes clusters on local machines for R&D, development, testing and learning purposes. The Kubernetes cluster is deployed using Kubespray on VirtualBox-powered Vagrant environment.

Getting Started

These instructions will help you deploy a default cluster of three kubernetes nodes, a master node and two worker nodes. The master node also plays the Ansible control machine role.

Prerequisites

VirtualBox and Vagrant with guest additions must be installed.

Deploy Kubernetes cluster

1. Create and provision Vagrant machines

vagrant up

2. SSH into Master node

vagrant ssh master

3. Deploy cluster

cd ~/kubespray/

ansible-playbook -i /vagrant/inventory.ini cluster.yml -b -v --private-key=~/.ssh/id_rsa

mkdir -p $HOME/.kube
sudo cp -i /etc/kubernetes/admin.conf $HOME/.kube/config
sudo chown $(id -u):$(id -g) $HOME/.kube/config

kubectl get nodes

Author

Gennadiy Kruglov (https://www.linkedin.com/in/gennadiy-kruglov/)

k8s-kubespray's People

Contributors

gkruglov avatar

Stargazers

 avatar Alexander Teterkin avatar Ilya avatar

Watchers

 avatar

Forkers

mr31337

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.