Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Running Kubernetes on Workstation, Edge, and IoT Devices

Running Kubernetes on Workstation, Edge, and IoT Devices

When it comes to running Kubernetes in resource constraint environments like your local developer workstation or edge and IoT devices a full-blown Kubernetes distribution is definitely not the right choice. Instead a new breed of super lightweight, certified Kubernetes distributions that (often) come as a single-binary are suited a lot better. In this session we will have a closer look at two popular choices: MicroK8s and K3s.

We will briefly cover their basic features and then put both of them to the test: locally, on a NUC powered Cloudkoffer and a few Raspi's. This talk will be mostly hands on, it shows that as a developer you do not need a PhD in clusterology to install and run Kubernetes.

M.-Leander Reimer

October 06, 2020
Tweet

More Decks by M.-Leander Reimer

Other Decks in Technology

Transcript

  1. // Cloud Native Summit Fall 2020 // Running K8s on

    Workstation, Edge and IoT Devices // @LeanderReimer #cloudnativenerd #qaware Installing K8s in the Cloud is relatively easy. 3 Cloud / Data Center Cloud Layer $ eksctl create cluster -n eks-demo -f cluster.yml $ aksctl create cluster --name aks-demo -file cluster.yaml $ gcloud container cluster create gee-demo
  2. // Cloud Native Summit Fall 2020 // Running K8s on

    Workstation, Edge and IoT Devices // @LeanderReimer #cloudnativenerd #qaware Installing K8s on Fog, Edge and IoT is not so easy. 4 Cloud / Data Center Fog Nodes Devices Gateways Cloud Layer Fog Layer Edge Layer
  3. // Cloud Native Summit Fall 2020 // Running K8s on

    Workstation, Edge and IoT Devices // @LeanderReimer #cloudnativenerd #qaware 5 Do you have a PhD in Kubernetes clusterology?
  4. // Cloud Native Summit Fall 2020 // Running K8s on

    Workstation, Edge and IoT Devices // @LeanderReimer #cloudnativenerd #qaware • CentOS 7.7 with Containerd • Kubernetes 1.16 with K8s Dashboard • Calico, External-DNS • MetalLB + NGINX-Ingress • Rook CephFS • Cert-Manager, Sealed Secrets • Elastic-Stack (Elasticsearch, Kibana, Fluentd) • Prometheus, Grafana, Grafana Loki • Istio, Knative, Jaeger • Clair, Vault, Keycloak 6 // Cloud Native Summit Fall 2020 // Running K8s on Workstation, Edge and IoT Devices // @LeanderReimer #cloudnativenerd #qaware
  5. // Cloud Native Summit Fall 2020 // Running K8s on

    Workstation, Edge and IoT Devices // @LeanderReimer #cloudnativenerd #qaware 7 https://en.wikipedia.org/wiki/Bus_factor
  6. // Cloud Native Summit Fall 2020 // Running K8s on

    Workstation, Edge and IoT Devices // @LeanderReimer #cloudnativenerd #qaware https://k3s.io https://microk8s.io 8 // Cloud Native Summit Fall 2020 // Running K8s on Workstation, Edge and IoT Devices // @LeanderReimer #cloudnativenerd #qaware
  7. // Cloud Native Summit Fall 2020 // Running K8s on

    Workstation, Edge and IoT Devices // @LeanderReimer #cloudnativenerd #qaware 9 5 x Intel NUC i5 5 x Raspberry Pi 3 CoM miniNodes Carrier Board
  8. // Cloud Native Summit Fall 2020 // Running K8s on

    Workstation, Edge and IoT Devices // @LeanderReimer #cloudnativenerd #qaware MicroK8s - Zero-ops Kubernetes • Certified Kubernetes distribution. Backed by Canonical. • Pure upstream, no APIs added or removed. • A single package of K8s for 42 flavours of Linux. Uses multipass to run a local Ubuntu VM under Windows and Mac. • Made for developers. Runs on cloud, workstations, Edge and IoT. • Dozens of infrastructure add-ons: DNS, registry, dashboard, storage, RBAC, ingress, MetalLB, GPU, Istio, Linkerd, Knative, fluentd, Prometheus, Jaeger, Ambassador, Cilium, Helm, … • High Availability and Multi-node cluster configuration supported. 10
  9. // Cloud Native Summit Fall 2020 // Running K8s on

    Workstation, Edge and IoT Devices // @LeanderReimer #cloudnativenerd #qaware MicroK8s Demo MicroK8s Demo https://github.com/lreimer/lightweight-k8s
  10. // Cloud Native Summit Fall 2020 // Running K8s on

    Workstation, Edge and IoT Devices // @LeanderReimer #cloudnativenerd #qaware K3s - 5 less than K8s • Certified Kubernetes distribution. Backed by Rancher. • Legacy, alpha, non-default features are removed. • Suitable for Edge, IoT, ARM64, ARMv7, CI, Workstations and the Cloud • LoadBalancer support with Traefik based Ingress. • High Availability with an External DB or Embedded DB (experimental) • Easy to install, run and auto-update. Single < 40MB binary. • k3sup: from Zero to KUBECONFIG in < 1 min https://k3sup.dev/ 12
  11. // Cloud Native Summit Fall 2020 // Running K8s on

    Workstation, Edge and IoT Devices // @LeanderReimer #cloudnativenerd #qaware K3s Demo https://github.com/lreimer/lightweight-k8s