coder-k8s

command module
v0.1.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 25, 2026 License: Apache-2.0 Imports: 13 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

coder-k8s

CI Go License

Run and manage Coder with native Kubernetes APIs.

[!WARNING] Experimental alpha software from a hackathon. Do not use it in production or expose it to end users.

What you get

One binary, three components:

Component Manages API group
Operator CoderControlPlane, CoderProvisioner, CoderWorkspaceProxy (CRDs) coder.com/v1alpha1
Aggregated API server CoderWorkspace, CoderTemplate (backed by a live Coder instance) aggregation.coder.com/v1alpha1
MCP server Tools for inspecting and operating the above over HTTP —

Pick what runs with --app:

--app Runs
all (default) Operator and aggregated API server in one process
controller Operator only
aggregated-apiserver Aggregated API server only
mcp-http MCP server only (never part of all; needs --mcp-token-file)

Quick start

From a clone of this repo:

kubectl create namespace coder-system
kubectl apply -f config/crd/bases/ -f config/rbac/
kubectl apply -f deploy/
kubectl rollout status deployment/coder-k8s -n coder-system

Then create a Coder instance:

kubectl create namespace coder
kubectl apply -f config/samples/coder_v1alpha1_codercontrolplane.yaml

Full walkthrough: Deploy a Coder Control Plane.

Documentation

📖 https://coder.github.io/coder-k8s/ (source in docs/; preview with make docs-serve)

Examples

Example Shows
examples/cloudnativepg/ CoderControlPlane backed by CloudNativePG PostgreSQL
examples/argocd/ The whole stack from one Argo CD ApplicationSet
examples/coder-templates/ Reusable CoderTemplate manifests

Contributing

See CONTRIBUTING.md. Licensed under Apache-2.0.

Documentation

Overview

Package main provides the entrypoint for the coder-k8s binary.

Directories

Path Synopsis
api
aggregation/v1alpha1
Package v1alpha1 contains API schema definitions for the aggregation.coder.com API group.
Package v1alpha1 contains API schema definitions for the aggregation.coder.com API group.
v1alpha1
Package v1alpha1 contains API schema definitions for the coder.com API group.
Package v1alpha1 contains API schema definitions for the coder.com API group.
hack
gen-coder-docs-skill command
Package main implements a CLI tool that generates the coder-docs Mux agent skill by syncing a text-only snapshot of the coder/coder documentation and injecting a navigation tree into SKILL.md.
Package main implements a CLI tool that generates the coder-docs Mux agent skill by syncing a text-only snapshot of the coder/coder documentation and injecting a navigation tree into SKILL.md.
internal
aggregated/coder
Package coder provides shared Coder backend helpers for the aggregated API server.
Package coder provides shared Coder backend helpers for the aggregated API server.
aggregated/convert
Package convert maps codersdk models to aggregated API resources and request payloads.
Package convert maps codersdk models to aggregated API resources and request payloads.
aggregated/storage
Package storage implements codersdk-backed REST storage for the aggregated API server's CoderWorkspace and CoderTemplate resources.
Package storage implements codersdk-backed REST storage for the aggregated API server's CoderWorkspace and CoderTemplate resources.
app/allapp
Package allapp composes the controller and aggregated API server app modes in one process.
Package allapp composes the controller and aggregated API server app modes in one process.
app/apiserverapp
Package apiserverapp provides the aggregated API server application mode for coder-k8s.
Package apiserverapp provides the aggregated API server application mode for coder-k8s.
app/controllerapp
Package controllerapp provides the controller-runtime application mode for coder-k8s.
Package controllerapp provides the controller-runtime application mode for coder-k8s.
app/mcpapp
Package mcpapp provides MCP server application modes for coder-k8s.
Package mcpapp provides MCP server application modes for coder-k8s.
app/sharedscheme
Package sharedscheme provides reusable runtime scheme construction across app modes.
Package sharedscheme provides reusable runtime scheme construction across app modes.
coderbootstrap
Package coderbootstrap contains optional bootstrap integrations with the Coder API.
Package coderbootstrap contains optional bootstrap integrations with the Coder API.
controller
Package controller contains Kubernetes controllers for coder-k8s resources.
Package controller contains Kubernetes controllers for coder-k8s resources.
deps
Package deps keeps baseline Kubernetes dependencies in go.mod for bootstrap.
Package deps keeps baseline Kubernetes dependencies in go.mod for bootstrap.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL