MicroK8s is a small, fast, single-package Kubernetes for datacenters and the edge.
  • Python 67.7%
  • Shell 31.1%
  • NSIS 1.2%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2024-09-03 14:14:35 +02:00
.github Disable testing on debian and centos. Images missing. (#4606) 2024-08-05 19:04:19 +02:00
build-scripts pin k8s-dqlite version (#4657) 2024-09-03 14:14:35 +02:00
docs Upgrade Calico to 3.25.0 (#3814) 2023-03-17 08:54:35 +02:00
installer quickfix multipass launch parameter (#4321) 2023-12-12 09:04:56 +02:00
microk8s-resources Add systemd delegate config if cpuset is missing (#4503) 2024-04-19 11:29:59 +03:00
scripts changed print_short in add_token.py (#4546) 2024-06-27 13:01:40 +03:00
snap Add systemd delegate config if cpuset is missing (#4503) 2024-04-19 11:29:59 +03:00
tests Stop testing on the host as this causes problems on our CI (#4623) 2024-08-14 14:25:31 +03:00
upgrade-scripts Fix spelling issues (#4537) 2024-05-30 11:17:13 +03:00
.gitignore Fix erroneous microk8s join invocations by adding validation (#4397) 2024-02-27 11:16:05 +01:00
CODE_OF_CONDUCT.md Create CODE_OF_CONDUCT.md (#3972) 2023-05-16 18:37:31 +03:00
CONTRIBUTING.md Run microceph integration test (#4229) 2023-10-06 10:46:50 +03:00
LICENSE Adding license - Apache 2.0 (#129) 2018-10-04 23:24:30 +03:00
pyproject.toml Enforce double quotes with Black (#1968) 2021-02-04 22:25:27 +02:00
README.md Update the readme for 1.30 (#4502) 2024-04-19 09:49:23 +03:00
tox.ini Added a simple non-disruptive test for cluster verification (#3963) 2023-07-11 10:06:20 +03:00

The smallest, fastest Kubernetes

Single-package fully conformant lightweight Kubernetes that works on 42 flavours of Linux. Perfect for:

  • Developer workstations
  • IoT
  • Edge
  • CI/CD

Canonical might have assembled the easiest way to provision a single node Kubernetes cluster - Kelsey Hightower

Why MicroK8s?

  • Small. Developers want the smallest K8s for laptop and workstation development. MicroK8s provides a standalone K8s compatible with Azure AKS, Amazon EKS, Google GKE when you run it on Ubuntu.

  • Simple. Minimize administration and operations with a single-package install that has no moving parts for simplicity and certainty. All dependencies and batteries included.

  • Secure. Updates are available for all security issues and can be applied immediately or scheduled to suit your maintenance cycle.

  • Current. MicroK8s tracks upstream and releases beta, RC and final bits the same day as upstream K8s. You can track latest K8s or stick to any release version from 1.10 onwards.

  • Comprehensive. MicroK8s includes a curated collection of manifests for common K8s capabilities and services:

    • Service Mesh: Istio, Linkerd
    • Serverless: Knative
    • Monitoring: Fluentd, Prometheus, Grafana, Metrics
    • Ingress, DNS, Dashboard, Clustering
    • Automatic updates to the latest Kubernetes version
    • GPGPU bindings for AI/ML

Drop us a line at MicroK8s in the Wild if you are doing something fun with MicroK8s!

Quickstart

Install MicroK8s with:

snap install microk8s --classic

MicroK8s includes a microk8s kubectl command:

sudo microk8s kubectl get nodes
sudo microk8s kubectl get services

To use MicroK8s with your existing kubectl:

sudo microk8s kubectl config view --raw > $HOME/.kube/config

User access without sudo

The microk8s user group is created during the snap installation. Users in that group are granted access to microk8s commands. To add a user to that group:

sudo usermod -a -G microk8s <username>

Kubernetes add-ons

MicroK8s installs a barebones upstream Kubernetes. Additional services like dns and the Kubernetes dashboard can be enabled using the microk8s enable command.

sudo microk8s enable dns
sudo microk8s enable dashboard

Use microk8s status to see a list of enabled and available addons. You can find the addon manifests and/or scripts under ${SNAP}/actions/, with ${SNAP} pointing by default to /snap/microk8s/current.

Documentation

The official docs are maintained in the Kubernetes upstream Discourse.

Take a look at the build instructions if you want to contribute to MicroK8s.

Get it from the Snap Store