1
0
Fork 0
mirror of https://git.sr.ht/~goorzhel/turboprop synced 2024-12-14 11:37:37 +00:00
No description
Find a file
2023-11-28 22:08:54 -08:00
charts Add Kubernetes dashboard 2023-11-26 16:41:55 -08:00
lib rm alwaysList 2023-11-27 11:40:13 -08:00
.gitignore Name Make recipe after output file 2023-11-23 17:12:33 -08:00
flake.lock rm alwaysList 2023-11-27 11:40:13 -08:00
flake.nix Provide derivation-builder 2023-11-27 00:35:19 -08:00
LICENSE License under Apache-2.0 2023-11-16 20:46:03 -08:00
Makefile Missed a spot in s/releases/services/ 2023-11-26 01:23:19 -08:00
README.md Start writing README 2023-11-28 22:08:54 -08:00

Kubernetes flake

Usage

lib

flake builders

charts

Signature, etc.

Architecture

Services expected to provide custom APIs (e.g.: Gateway API, Istio, Longhorn) go in ./system. All others in ./services, including system-service charts dependent on other APIs. This prevents infinite recursion when gathering APIs.

Each of the leaves of the services attrsets is a derivation (explained better in lib/flake-builders.nix). Here, they are gathered into one mega-derivation, with Kustomizations at each level for usage with k apply -k $path.

namespaces

Assign extra metadata in namespaces.nix. For example, svc = {labels."istio.io/rev" = "1-18-1"} is the equivalent of k label ns/svc istio.io/rev=1-18-1

Prior art

Immense debt of gratitude to farcaller's "Nix and Kubernetes: Deployments Done Right" (notes)