- Shell 47.9%
- Go 37.2%
- Makefile 5.1%
- HCL 5%
- Dockerfile 3.1%
- Other 1.7%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
| .forgejo/workflows | ||
| .vscode | ||
| apps | ||
| public | ||
| src | ||
| .gitignore | ||
| AGENTS.md | ||
| astro.config.mjs | ||
| docker-compose.yml | ||
| Dockerfile | ||
| LICENSE | ||
| Makefile | ||
| package.json | ||
| pnpm-lock.yaml | ||
| README.md | ||
| tsconfig.json | ||
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/:
- Create
apps/<name>/with its ownREADME.md, dependency manifest, and build/test entrypoints. Root has no workspaces, so each app is self-contained. - 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. - If it needs documentation, add pages under
src/content/docs/and register a sidebar section inastro.config.mjs— a new top-level folder will not show up until you do. - Remember
apps/is not mounted into the docs dev container, so app tooling cannot be reached frommake 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.