Giter Club home page Giter Club logo

k8s-setup's Introduction

k8s-setup

A set of scripts and resources to setup a bare-metal Kubernetes cluster.

/hardware

/hardware/raspberry-pi

configure-sdcard.py

A Python script that simplifies the customization of an SD card immediately after imaging. This is achieved through dynamically building cloud-init scripts. There is a config.yaml to configure global parameters of your cluster. Then per-host values are given as script parameters (though it will prompt for password).

@todo There are still portions of the script that hard code values specific to me, and therefore require touch-ups for sharing (like username created on hosts). These should be factored out to config.yaml

  1. Flash SDCard (e.g. BalenaEtcher). Remove and re-insert to get system-boot mounted
  2. copy bootdir_base (custom kernel) (this step could be removed by minting a fresh image)
  3. Run this script to customize cloud-init
  4. Boot up!
./configure-sdcard.py -d /Volumes/system-boot -t worker -i 1

Networking

Networking is specified in terms of three primitives:

  1. Hardware Profiles - describes the physical setup of the machine. Specify eth devices & bonds
  2. Networks - the Layer 3 definitions of networks, essentially giving a semantic name to a CIDR
  3. NetAttachments - a binding between hardware and network. Currently makes every attachment a VLAN.

The choice to make every attachment a VLAN might be reconsidered. It has the disadvantage that the switch needs to be configured for "tagged" packets for any networking to work (e.g. there will be no un-tagged traffic from this host). However, there is an advantage that broadcast domains are not explicit-only, which may simplify reasoning about the network.

k8s-setup's People

Contributors

ctrahey avatar

Stargazers

 avatar

Watchers

 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.