portainer/k2d

Verified Publisher

By Portainer.io

Updated 4 months ago

Kubernetes to Docker translator

Image
Integration & Delivery
Monitoring & Observability
Operating Systems

10K+

K2D was created to solve a very specific problem; enabling the use of Kubernetes primitives on the resource-constrained compute devices that underpin Industrial IoT use cases.

K2D is NOT Kubernetes, it is a Kubernetes emulator/translator, that allows you to run Docker on your devices, and yet, manage them as if they were a single node Kubernetes cluster. Kubernetes without Kubernetes.

The k2d image can run on the following platforms/archs: linux/amd64, linux/arm64, linux/386, linux/armv6 and linux/armv7.

The deployment of k2d is based on a simple Docker run:

docker run -d \
  --name k2d-k2d \
  --network host \
  --restart always \
  --env K2D_ADVERTISE_ADDR=YOUR_HOST_IP \
  --env K2D_SECRET=YOUR_OWN_SECRET \
  --label resource.k2d.io/namespace-name=k2d \
  --label workload.k2d.io/name=k2d \
  --volume /var/run/docker.sock:/var/run/docker.sock \
  --volume /var/lib/k2d:/var/lib/k2d \
  portainer/k2d:1.0.0

See docs.k2d.io for more information on how to deploy and use k2d.

Docker Pull Command

docker pull portainer/k2d