Kubernetes

Building a Kubernetes 1.18 multi-master cluster - p01

Sept. 29, 2020 | Category: Virtualization | Tags: Kubernetes

Overview

This setup uses:

  • Kubernetes 1.18
  • eight servers running Ubuntu 20.04 LTS
  • three master nodes
  • five worker nodes
  • all servers have a root drive and a data drive
  • no swap drive

Setting up the servers

All servers are Ubuntu 20.04 LTS.

/etc/netplan/00-installer-config.yaml

kube-01 (master)
network:
  ethernets:
    eth0: …

Building a Kubernetes 1.18 multi-master cluster - p02 (LB and Ingress)

Sept. 29, 2020 | Category: Virtualization | Tags: Kubernetes

Installing MetalLB

Configmap for metallb:

metallb-configmap.yaml

apiVersion: v1
kind: ConfigMap
metadata:
  namespace: metallb-system
  name: config
data:
  config: |
    address-pools:
    - name: rpi-kube-pool-1
      protocol: layer2
      addresses:
      - 192.168.122.190-192.168.122.209
kubectl apply -f https://raw.githubusercontent.com/metallb/metallb/v0.9.3/manifests/namespace.yaml
kubectl apply -f https://raw.githubusercontent.com/metallb/metallb/v0.9.3/manifests/metallb.yaml
kubectl create secret generic -n metallb-system memberlist --from-literal …