Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

helm-dev-environment

БесплатноБез исполняемых скриптовНе проверен

Start up, tear down, and configure the local Kubernetes development environment for OpenShell. Uses k3d (Docker-backed k3s) + Skaffold + Helm. Covers cluster…

ai-openshellот ai-openshell★ 22 101 звезда на GitHub

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

Helm Dev Environment

Set up, run, and tear down the local Kubernetes development environment for OpenShell. The stack is: k3d (Docker-backed k3s) for the cluster, Skaffold for image builds and Helm deploys, and the OpenShell Helm chart (deploy/helm/openshell/).


Prerequisites

  • Docker Desktop (macOS) or Docker Engine (Linux) running
  • mise install completed (provides k3d, kubectl, skaffold, helm)

Startup

1. Create the cluster

mise run helm:k3s:create

Creates a k3d cluster and merges its kubeconfig into the worktree-local kubeconfig file. When the named cluster already exists, the task starts any stopped containers and refreshes same-named kubeconfig entries so a recreated load balancer's current API port takes effect. Also applies the upstream agent-sandbox CRDs/controller (pinned via AGENT_SANDBOX_VERSION in tasks/scripts/helm-k3s-local.sh, fetched from github.com/kubernetes-sigs/agent-sandbox releases), enables its OTLP tracing on v0.5 and later, installs an OTLP trace collector and UI in the observability namespace, and preloads the default sandbox image into k3d so the first sandbox create does not wait on a large registry pull. Traefik is disabled at cluster creation time.

Multi-worktree support: the cluster name is derived from the last component of the current git branch (e.g. branch chore/1234-local-dev/octocat → cluster openshell-dev-octocat). Each worktree therefore gets its own isolated cluster and its own kubeconfig file. Override with HELM_K3S_CLUSTER_NAME to force a specific name or share one cluster across worktrees.

Port mappings created at cluster time (cannot be changed without recreating):

Host port Target Used by
8080 Port 80 via k3d load balancer Envoy Gateway LoadBalancer service (values-gateway.yaml)

Override with env vars before running helm:k3s:create:

  • HELM_K3S_LB_HOST_PORT (default: 8080)
  • HELM_K3S_PRELOAD_SANDBOX_IMAGE (default: nvcr.io/nvidia/base/ubuntu:24.04; set to an empty value to skip)
  • HELM_K3S_COLLECTOR_IMAGE (default: mcr.microsoft.com/dotnet/aspire-dashboard:latest)
  • HELM_K3S_COLLECTOR_HEALTH_TIMEOUT (default: 120 seconds)

Gateway metrics

The chart enables its dedicated Prometheus endpoint by default. Set metrics.enabled=false to omit the listener and its container and Service ports without changing service.metricsPort (default 9090). The port must remain between 1 and 65535 even when disabled. Legacy metricsPort: 0 or false values fail rendering; migrate them to metrics.enabled=false and a valid port in the same upgrade. metrics.tls.enabled=true requires metrics.enabled=true. This setting does not disable OpenTelemetry export.

Shared supervisor plumbing

Set gatewayConfig.openshell.drivers.kubernetes.supervisor_topology using a values file (the table key is literally openshell.drivers.kubernetes):

gatewayConfig:
  openshell.drivers.kubernetes:
    supervisor_topology: gateway

The gateway chart creates a shared supervisor Deployment (supervisor.replicas, default two), Service, NetworkPolicy, and an empty <release>-supervisor-token Secret in the release namespace, regardless of shared/managed/operator workspace mode. The gateway mints a supervisor token from its sandbox-JWT signing key, writes it into that Secret (the gateway Role may get/patch only that Secret), and renews it at half its lifetime; the supervisor mounts the Secret and presents the token on the private openshell.supervisor.host.v1 assignment stream, which accepts nothing else. The topology requires gateway TLS and the signing key (server.disableTls is rejected; the gateway refuses to start without gateway_jwt). New sandbox generations run as sandbox instances in that process. The chart starts --mode=shared, sets --gateway-endpoint to the gateway gRPC URL, mounts the token at --token-file, and binds --address (5501) to a plain TCP health listener for the tcpSocket probes; nothing dials the supervisor but sandbox runtimes (5500) and the kubelet. Build the gateway, supervisor, and sandbox images from the same branch: all three must support the routed runtime connection and the assignment stream. workspace is reserved and rejected. Omit the field to disable it. mise run e2e:kubernetes:shared-supervisor runs the focused e2e (ci/values-supervisor.yaml). The task prepends that overlay to any colon-separated OPENSHELL_E2E_KUBE_EXTRA_VALUES list, so layer a workspace-mode overlay to cover managed namespaces:

OPENSHELL_E2E_KUBE_EXTRA_VALUES=deploy/helm/openshell/ci/values-workspace-managed.yaml \
OPENSHELL_E2E_KUBE_IMAGE_PULL_SECRET=e2e-regcred \
  mise run e2e:kubernetes:shared-supervisor

mise run e2e:kubernetes:shared-supervisor-spiffe installs pinned SPIRE charts (ci/values-spire-broker-stack.yaml) and the openshell.gateway.spiffe_broker overlay (`

Полный SKILL.md на GitHub

Установить helm-dev-environment в Claude Code и Claude Desktop

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

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

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

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

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

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

FAQ

Что делает скилл helm-dev-environment?

Start up, tear down, and configure the local Kubernetes development environment for OpenShell. Uses k3d (Docker-backed k3s) + Skaffold + Helm. Covers cluster lifecycle, optional add-ons (Keycloak OIDC, Envoy Gateway), HA testing, and port mappings. Trigger keywords - local k8s, local cluster, k3d, skaffold, helm dev, start cluster, stop cluster, tear down cluster, delete cluster, create cluster, helm:k3s, helm:skaffold, local dev environment, dev cluster, k8s dev, envoy gateway local, keycloak local, high availability, HA.

Как установить скилл helm-dev-environment?

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

Скилл helm-dev-environment запускает скрипты?

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

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

Сравнить helm-dev-environment с