Skip to content

Instantly share code, notes, and snippets.

View tklauser's full-sized avatar

Tobias Klauser tklauser

View GitHub Profile
@tklauser
tklauser / micro-k8s-setup.md
Last active January 8, 2024 13:37 — forked from joestringer/micro-k8s-setup.md
MicroK8s development environment setup for Cilium

Set up microk8s with Cilium for development

Microk8s is a Canonical project to provide a kubernetes environment for local development, similar to minikube but without requiring a separate VM to manage. These instructions describe setting it up for common development use cases with Cilium and may be helpful in particular for testing BPF kernel extensions with Cilium.

Microk8s will run its own containerd runtime, which may be initially confusing when building containers locally with docker. This guide assumes that you will use docker locally for building containers, and push these into a microk8s registry for use by containerd in the microk8s environment.

This guide works with MicroK8s 1.14 or above, with containerd. If you are running an earlier version, see the previous instructions.

Requirements