Code Monkey home page Code Monkey logo

kubear's Introduction

Kubear

Kubear is an Ansible playbook that creates a ready-to-use Kubernetes bare metal cluster that's meant to be running on Raspberry Pis. It aims to provide the cluster with as little preparatory work as possible. Once rolled out, you'll have a fully functional cluster with the following components:

Preliminaries

The nodes must be initially accessible via the ansible ssh configuration in the inventory group vars. If you add a new user via the users role you
can change the ansible config after the first successful run. Also make sure the correct ssh port is still configured as this might have changed by the security role while configuring ssh. To avoid to accidentally lock yourself out, it's probably best to have a shell open on your nodes while performing changes to the ssh config.

Getting Started

Download the imported roles:

ansible-galaxy install -r requirements.yml

Specify all the hosts that should form the cluster in your inventory hosts file. There are three groups available:

  • [k8s_master]: Should only contain a single entry for the master node (runs kubeadm init)
  • [k8s_cp]: Nodes that should join the cluster as additional control-plane nodes
  • [k8s_worker]: Nodes that should join the cluster as worker nodes

If you want to initialize a new cluster, make sure to set k8s_join_only: false. Set k8s_join_only: true if a cluster is already running, and you want to join a new node.

If you want to reset and recreate the cluster from scratch set k8s_reset_cluster: true.

Tested Hardware

Raspberry Pi 4 Model B - 8GB

OS: Ubuntu Server 20.04

Arch: ARM64

kubear's People

Contributors

jamslinger 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.