Git Product home page Git Product logo

my-own-kind's Introduction

My Own Kind

View a Transcript of the screenscast.

Summary

Build a verifiably conformant kubernetes cluster in containers.

Try mokctl

Take note of the Status below and the Releases page.

For Linux Operating Systems

Either Podman or Docker must be installed frst. If both are installed mokctl will choose to use Podman.

If your distribution enables cgroups v2 then it must be disabled. Only Fedora do this right now, so for Fedora 31 or 32 do:

grubby --update-kernel=ALL --args="systemd.unified_cgroup_hierarchy=0"

To build and install from source:

git clone https://github.com/mclarkson/my-own-kind.git
cd my-own-kind

Install into /usr/local/bin (don't use mokctl if any tests fail):

sudo make test
sudo make install

Then use mokctl:

alias mokctl="sudo mokctl"
mokctl build image
mokctl create cluster myk8s 1 0

Removal

# To remove mokctl
sudo make uninstall

# OR, to remove mokctl and the `~/.mok/` configuration directory
sudo make purge

For Non-Linux Operating Systems

Install Docker if you don't have it already.

Paste the following alias into your teminal:

alias mokctl='docker run --rm --privileged -ti -v /var/run/docker.sock:/var/run/docker.sock -v ~/.mok/:/root/.mok/ -e TERM=xterm-256color mclarkson/mokctl'

Then use mokctl:

mokctl build image

mokctl create cluster myk8s 1 0

export KUBECONFIG=~/.mok/admin.conf

kubectl get pods -A

kubectl run -ti --image busybox busybox sh

See: Mokctl on Docker Hub.

Status

Mokctl Utility

OS Termnal Status
Fedora 31 Gnome Terminal Works - must disable cgroup2
Fedora 32 Gnome Terminal Works - must disable cgroup2
Mac OS Default terminal ?
Windows Cygwin ?

Documentation

To see how mokctl was created go to the docs section.

Kubernetes the Hard Way - on your laptop

A remake of the original Bootstrap Kubernetes the hard way on Google Cloud Platform. No scripts. with slight configuration changes, only where necessary, to make it work with My Own Kind.

Mokctl is used to create seven container nodes: a load balancer, 3 controller nodes and 3 worker nodes without melting your laptop.

Document Transcript + Screencast
Start Page
01-prerequisites.md
02-client-tools.md kthw-2.md
03-compute-resources.md kthw-3.md
04-certificate-authority.md kthw-4.md
05-kubernetes-configuration-files.md kthw-5.md
06-data-encryption-keys.md kthw-6.md
07-bootstrapping-etcd.md kthw-7.md
08-bootstrapping-kubernetes-controllers.md kthw-8.md
09-bootstrapping-kubernetes-workers.md kthw-9.md
10-configuring-kubectl.md kthw-10.md
11-pod-network-routes.md kthw-11.md
12-dns-addon.md kthw-12.md
13-smoke-test kthw-13.md
14-cleanup.md kthw-14.md

Contributing

Please check the 'Help Wanted' issues if you fancy helping.

All types of contributions are welcome, from bug reports, success stories, feature requests, fixing typppos, to coding. Also check the CONTRIBUTING.md document.

my-own-kind's People

Contributors

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