/kubewhistle

Home kubernetes cluster with bells and whistles

Kubewhistle

Simple guides to get you going to an onprem cluster that has many bells and whistles

The Layout

                                      .─. .─.                                   
                                   (   (   ).─.                               
                                 .─.`         .─.                             
                               .─.              .─.                           
                              (  .─   The Web      )                          
                               `(              .`'                           
                                 `─(            )                             
                                    `─' (   )`'                              
                                        │`─'                                  
                                        │                                     
                                        │                                     
                                        ▼                                     
                              ┏━━━━━━━━━━━━━━━━━━━┓                           
                              ┃      Router       ┃                           
                              ┃(DMZ exposing RPi) ┃                           
                              ┗━━━━━━━━━━━━━━━━━━━┛                           
                                        │                                     
                                        │                                     
                                        │                                     
┌─workers────┐                          ▼                                     
│ ┏━━━━━━━━┓ │                ┏━━━━━━━━━━━━━━━━━━━┓             ┌─masters────┐
│ ┃ NODE 2 ┃ │                ┃   ┌ ─ ─ ─ ─ ─ ┐   ┃             │            │
│ ┗━━━━━━━━┛ │ ports: 80, 443 ┃    HAProxy LB4    ┃ ports: 6443 │ ┏━━━━━━━━┓ │
│ ┏━━━━━━━━┓ │◀───────────────┃   └ ─ ─ ─ ─ ─ ┘   ┃────────────▶│ ┃ NODE 1 ┃ │
│ ┃ NODE 3 ┃ │                ┃                RPi┃             │ ┗━━━━━━━━┛ │
│ ┗━━━━━━━━┛ │                ┗━━━━━━━━━━━━━━━━━━━┛             │            │
└────────────┘                                                  └────────────┘

Node Preparation

Each kubernetes node needs to be prepared for ssh connectivity, passwordless actions, etc.

Install Kubernetes

From here you have the choice of installing from:

Basics

  • Enable Dashboard
kubectl apply -f https://raw.githubusercontent.com/kubernetes/dashboard/master/aio/deploy/recommended/kubernetes-dashboard.yaml

Use kubectl proxy before accessing it

  • Enable Helm (may already have been done)
  • Enable Rook