Giter Club home page Giter Club logo

cka-exam-clusters's Introduction

CKA exam cluster(s) for training!

Please note that this repository is not actively maintained!

In this official CNCF document, with some tips for you who will try to do the CKA exam, there's a table of the clusters you will be using during the exam. See the table below.

Cluster Members CNI Description
k8s 1 etcd, 1 master, 2 worker flannel
hk8s 1 etcd, 1 master, 2 worker calico
bk8s 1 etcd, 1 master, 1 worker flannel
wk8s 1 etcd, 1 master, 2 worker flannel
ek8s 1 etcd, 1 master, 2 worker flannel
ik8s 1 etcd, 1 master, 1 base node loopback Missing worker node

This repo contains some scripts to get you started with cluster number one (k8s).

There's no real good structure no the scripts yet, sorry for the mess. You should start with create_cluster.sh though.

Enjoy!

Summary

  • Heavily inspired by Kubernetes The Hard Way
  • External etcd one node cluster (!)
  • Runs on GCE (VMs)
  • As of now only the first cluster can be created
  • Lacks flannel support
  • tmux and start/stop helper scripts are provided
  • Scalable, not trivial but a good way of learning e.g. how to add more nodes to a cluster

Get started

Pre-req:

  • Install gcloud
  • Install kubectl
  • Create a free tier account on GCE
  • Configure gcloud

Create and run the cluster:

  1. Create a new directory somewhere on your local computer
  2. Clone this repo
  3. cd into the cloned repo directory
  4. Run the create_cluster.sh script

Todo

  • Clean-up script
  • Provide initial tool setup (kubectl and cfssl)
  • Provide initial gcloud setup, installation and configuration
  • Creation of GCE free tier
  • create-cluster.sh
    • Check if kubelet, gcloud and cfssl binaries are present
    • Add colors to the echoes
    • Refactor (ouch!)
    • Add argument to script to create different kinds of cluster (the others from the CKA exam)
    • Add a check to see if the provisioned instances are running before proceeding after creation
    • Add a way of continuing after this step, bootstrapping etc.
    • Support flannel and calico overlays (if possible in GCE)
  • bootstrap*.sh
    • Add echoes with color
    • Find a way to execute them remotely
  • The rest of the *.sh scripts

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.