Command Palette

Search for a command to run...

Назад к скиллам
скилл № 26344

kina-microvm

Run microVM-isolated Kubernetes workloads on Apple Silicon using kina, the Kubernetes-in-Apple-Containers analogue of kind. Use when developing…

БесплатноБез исполняемых скриптов
vinnie357от vinnie357★ 30 звёзд на GitHub

Установить kina-microvm в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Об этом скилле

kina-microvm

kina is to Apple Container what kind is to Docker: a CLI that creates local Kubernetes clusters where each node is a microVM. On macOS Apple Silicon, Kata Containers cannot run (no nested KVM via Hypervisor.framework), so kina + Apple Container fills the role Kata plays on Linux.

The structural difference matters: with kata-on-kind, isolation lives at the pod level via runtimeClassName: kata-qemu on a Linux container node. With kina, isolation lives at the node level — every node IS already an Apple Container microVM, so every pod on the cluster is already inside a microVM. There is no per-pod runtimeClassName swap.

Why not kata-on-kind on macOS

Apple Silicon's Hypervisor.framework does not expose nested KVM to guest Linux VMs. Docker Desktop and Colima both run a Linux VM under the hood; that VM cannot itself host KVM-accelerated Kata microVMs. Symptom if you try: qemu-system-x86_64: failed to access /dev/kvm.

Apple Container is the macOS-native analogue: a microVM runtime that uses Virtualization.framework instead of KVM. It's not compatible with the Kata RuntimeClass spec, but it can serve as the microVM substrate for k8s nodes — which is what kina does.

kina ↔ kind ↔ kata

Substrate Isolation tier
kind (Linux/macOS) Docker container per node None per pod (vanilla containerd)
kind + kata-deploy (Linux only) Docker container per node microVM per pod via kata-qemu
kina (macOS) Apple Container microVM per node Node IS the microVM; pods share that VM's kernel

The kina model gives macOS developers microVM isolation at a different granularity. For agent-sandbox, the cluster is hardware-isolated from the host macOS — the security posture matches kata-on-kind, with the isolation boundary placed at the node layer instead of the pod layer.

See references/cluster-is-vm.md for the implications when authoring SandboxTemplates.

Prerequisites

  • macOS 26+ (Apple Silicon or Intel). kina's README documents limitations on macOS 15.6 — verify by running kina against the older version before depending on it.
  • Apple Container 0.5.0+. Currently kina is pinned at 0.5.0+ while Apple Container is at 1.4.1 — verify compatibility before depending on it (see "Version drift" below).
  • kubectl on the host.
  • mise if you want kina's task automation.

Install Apple Container:

# Download the .pkg from https://github.com/apple/container/releases
# Install, then start the API server:
container system start
container --version

Version drift (kina ↔ apple-container)

kina's README says it requires "Apple Container 0.5.0+" and "automatically detects and validates" the installed version. Apple Container has moved to 1.4.1, and three releases in that line carry breaking changes: 1.0.0 removed container system property get/set/clear in favor of a TOML config file and changed the structured ls/inspect output shape; 1.3.0 removed --scheme auto for image operations and made https the default; 1.4.1 changed the container system status output shape. Each widens the drift risk against kina's 0.5.0+ pin. Before depending on kina in any plugin workflow, verify it actually runs against the installed container version.

container --version
# Compare to kina's expected range.
kina --help 2>&1 | head -5
# kina validates Apple Container at startup; a mismatch will fail loudly here.

If kina errors with an unsupported-version message:

  1. Check the kina repo for a newer release that handles the latest Apple Container.
  2. If none exists, file an issue (or PR) at https://github.com/vinnie357/kina asking for compatibility with Apple Container 1.x.
  3. Pin to a known-good Apple Container version in your local dev setup (brew tap apple/container@<version> if Apple ships that, otherwise install the matching .pkg from the GitHub releases page).

Do NOT proceed with the rest of this skill until kina --help and kina create work end-to-end. The plugin must not claim a working macOS path on an untested version pair.

Install kina

git clone https://github.com/vinnie357/kina.git
cd kina

# With mise (recommended for this marketplace per /core:mise):
mise run kina:install

# Or directly:
cargo install --path kina-cli

Verify:

kina
# Prints kina version + detected Apple Container version

Step 1 — create a cluster

kina create agent-sandbox
kina export agent-sandbox --format kubeconfig --output ~/.kube/agent-sandbox
export KUBECONFIG=~/.kube/agent-sandbox
kubectl get nodes

Each node listed is an Apple Container microVM. The kubelet, kube-proxy, and containerd all run inside that VM.

For an ingress-equipped cluster:

kina create agent-sandbox --cni cilium --wait 300
kina install nginx-ingress --cluster agent-sandbox

Step 2 — install agent-sandbox

VERSION=v0.4.6
kubectl apply -f https://github.com/kubernetes-sigs/agent-sandbox/release
Полный SKILL.md на GitHub

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

  • references/cluster-is-vm.md

FAQ

Что делает скилл kina-microvm?

Run microVM-isolated Kubernetes workloads on Apple Silicon using kina, the Kubernetes-in-Apple-Containers analogue of kind. Use when developing kubernetes-sigs/agent-sandbox workloads on macOS where Kata Containers cannot run, when each k8s node must be an Apple Container microVM, or when applying SandboxTemplates without a per-pod runtimeClassName because the cluster itself is the microVM isolation tier.

Как установить скилл kina-microvm?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл kina-microvm запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить kina-microvm с