No description
  • Shell 47.9%
  • Go 37.2%
  • Makefile 5.1%
  • HCL 5%
  • Dockerfile 3.1%
  • Other 1.7%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-12-02 19:53:31 +00:00
.forgejo/workflows added cli workflow 2026-12-02 19:53:31 +00:00
.vscode Initial commit from Astro 2025-07-12 16:00:08 +01:00
apps feat/minimal-viable-k8s-single-node (#1) 2026-12-02 17:02:40 +01:00
public Refactor MVK documentation 2025-12-12 16:13:16 +00:00
src Refactor MVK documentation 2025-12-12 16:13:16 +00:00
.gitignore feat/add-infctl (#1) 2026-09-18 17:42:42 +02:00
AGENTS.md feat/minimal-viable-k8s-single-node (#1) 2026-12-02 17:02:40 +01:00
astro.config.mjs feat/add-infctl (#1) 2026-09-18 17:42:42 +02:00
docker-compose.yml feat/add-infctl (#1) 2026-09-18 17:42:42 +02:00
Dockerfile feat/add-infctl (#1) 2026-09-18 17:42:42 +02:00
LICENSE feat/add-infctl (#1) 2026-09-18 17:42:42 +02:00
Makefile feat/add-infctl (#1) 2026-09-18 17:42:42 +02:00
package.json Enhance documentation and configuration for MVK; add starlight-heading-badges integration, update guides, and improve clarity in existing content. 2025-09-06 18:17:56 +01:00
pnpm-lock.yaml Enhance documentation and configuration for MVK; add starlight-heading-badges integration, update guides, and improve clarity in existing content. 2025-09-06 18:17:56 +01:00
README.md feat/add-infctl (#1) 2026-09-18 17:42:42 +02:00
tsconfig.json Initial commit from Astro 2025-07-12 16:00:08 +01:00

MinimalViableK8s

This repository contains the MinimalViableK8s (MVK) documentation site and the tooling it documents. It is a monorepo of loosely coupled projects that share a git history but are built, tested and released separately.

Repository layout

Path What it is Toolchain
/ Starlight docs site, deployed to mvk.headshed.dev Astro + npm
apps/cli infctl-cli — Go CLI, deployment pipelines, and Terraform/Ansible/Vagrant/K3D/GCloud infrastructure Go
apps/ Home for additional MVK tools and services; each app owns its own toolchain per app

Each app under apps/ is independent. The root Makefile, Dockerfile and npm project only cover the documentation site; they do not build, test, install or mount anything under apps/.

Docs site (repo root)

The docs are built with Astro Starlight and deployed to mvk.headshed.dev. Content lives in Markdown/MDX files under src/content/docs/; the top-level sidebar sections are declared explicitly in astro.config.mjs.

The intended dev path runs inside a container (Docker required):

make up      # start the dev container (builds if needed)
make dev     # Astro dev server, exposed on http://localhost:4321
make build   # production build into dist/
make shell   # bash inside the container
make npm CMD="run build"   # any npm command in the container
make down    # stop and remove the container

make clean also removes the node_modules volume — run make install afterwards. Plain npm install && npm run dev works too if Node is installed locally. There is no lint/typecheck script; npm run build is the verification step.

The container mounts only src/, public/, package.json, astro.config.mjs and tsconfig.json (plus a named node_modules volume), so edits to other root files are not visible inside it and apps/ is deliberately kept out.

Applications

apps/cli — infctl-cli

A Go CLI that orchestrates infrastructure deployment pipelines by executing JSON-defined steps (shell scripts and Kubernetes operations). It also ships the Terraform/Ansible/Vagrant/K3D/GCloud definitions the docs walk through and the infctl-preflight-checks plugin.

cd apps/cli/cmd
go test ./... -v              # run the test suite
go build -o infctl-cli .      # build the CLI

./build.sh                    # cross-compile release binaries + checksums

The plugin is a second Go module and is built separately:

cd apps/cli/cmd/plugins/infcli-pre-checks
go test ./...
./build.sh

See apps/cli/README.md and apps/cli/cmd/docs/ for configuration, pipeline schema and usage. Install scripts download release binaries from codeberg.org/headshed/infctl-cli. apps/cli is licensed GPL-3.0.

Adding a new app

To add a tool or service under apps/:

  1. Create apps/<name>/ with its own README.md, dependency manifest, and build/test entrypoints. Root has no workspaces, so each app is self-contained.
  2. Do not wire it into the root Makefile/Dockerfile/package.json; those stay docs-only. Add its own build and test commands to its README instead.
  3. If it needs documentation, add pages under src/content/docs/ and register a sidebar section in astro.config.mjs — a new top-level folder will not show up until you do.
  4. Remember apps/ is not mounted into the docs dev container, so app tooling cannot be reached from make shell.

License

This project is licensed under the GNU General Public License v3.0 — see LICENSE. apps/cli carries its own copy at apps/cli/LICENSE.