MicroK8s

Definition

MicroK8s is a lightweight, single-package Kubernetes distribution designed for developers and IoT devices. It provides a minimalistic, production-grade Kubernetes environment that can be easily installed and run on a local machine or edge devices. MicroK8s is optimized for simplicity and speed, allowing developers to quickly set up a Kubernetes cluster without the overhead of a full-scale Kubernetes deployment.

Secure Settings Example

apiVersion: v1
kind: Pod
metadata:
  name: secure-pod
spec:
  securityContext:
    runAsNonRoot: true
    readOnlyRootFilesystem: true
  containers:
  - name: secure-container
    image: nginx:alpine
    securityContext:
      allowPrivilegeEscalation: false
      capabilities:
        drop:
        - ALL

Insecure Settings Example

apiVersion: v1
kind: Pod
metadata:
  name: insecure-pod
spec:
  containers:
  - name: insecure-container
    image: nginx:alpine
    securityContext:
      privileged: true
      capabilities:
        add:
        - NET_ADMIN