Skip to content

kast-system Documentation

Welcome to kast-system - Kubernetes Arcane Spelling Technology, a Test-Driven Development framework for Helm-based deployments.

What is kast-system?

kast-system is a comprehensive GitOps framework that combines:

  • Glyphs: Reusable Helm templates for infrastructure (Vault, Istio, Cert-Manager, etc.)
  • Kaster: Orchestration chart that coordinates multiple glyphs
  • Summon: Base chart for workload deployments (Deployment, StatefulSet, Job, etc.)
  • Librarian: ArgoCD App of Apps orchestrator
  • Bookrack: Configuration management with book/chapter/spell hierarchy
  • TDD Testing: Comprehensive test-driven development workflow

New to kast-system?

Start with the Navigation Guide for a holistic overview and learning paths.

Get Started:

Core Components:

Development:

Architecture Overview

Book (bookrack/)
  โ”œโ”€ index.yaml          # Book metadata
  โ””โ”€ chapters/
      โ””โ”€ spell.yaml      # Application config
          โ†“
Librarian (ArgoCD)
  โ”œโ”€ Reads spell files
  โ””โ”€ Generates Applications
          โ†“
Helm Charts
  โ”œโ”€ Kaster โ†’ Glyphs โ†’ Resources
  โ”œโ”€ Summon โ†’ Workloads
  โ””โ”€ Trinkets โ†’ Patterns
          โ†“
Kubernetes Cluster

Key Features

๐ŸŽฏ Test-Driven Development

All features follow strict TDD methodology:

make tdd-red      # Write failing test
make tdd-green    # Implement feature
make tdd-refactor # Improve code

๐Ÿ”ง Infrastructure as Code

Glyphs provide reusable templates for:

  • Vault: Secrets management
  • Istio: Service mesh
  • Cert-Manager: TLS certificates
  • PostgreSQL: Managed databases
  • S3: Object storage
  • And more...

๐Ÿ“š GitOps Ready

Designed for ArgoCD-first deployment:

  • Book/chapter/spell configuration hierarchy
  • Automatic multi-source detection
  • Lexicon-based infrastructure discovery
  • Environment-specific overrides

๐Ÿงช Comprehensive Testing

  • Syntax validation
  • Resource completeness checks
  • Snapshot testing
  • Kubernetes schema validation
  • Automatic component discovery

Quick Start

# Clone repository
git clone https://github.com/kast-spells/kast-system.git
cd kast-system

# Run tests
make test

# TDD workflow
make create-example CHART=summon EXAMPLE=my-app
make tdd-red      # Should fail
# Edit templates
make tdd-green    # Should pass

Documentation Structure

Navigation

Use the navigation menu on the left to explore documentation by topic.

For a guided learning experience, see Navigation Guide.

By Experience Level:

  • Beginners: Getting Started โ†’ Glossary โ†’ Summon
  • Intermediate: Core Components โ†’ Glyphs โ†’ Testing
  • Advanced: Glyph Development โ†’ Trinkets โ†’ Hierarchy Systems

By Use Case:

  • Deploy simple app: Getting Started โ†’ Summon
  • Infrastructure integration: Glyphs โ†’ Kaster โ†’ Lexicon
  • Multiple applications: Bookrack โ†’ Librarian
  • Development & testing: Testing โ†’ TDD Commands

Project Philosophy

TDD First

Every feature, template, and glyph follows Test-Driven Development:

  1. RED: Write failing test (define expected behavior)
  2. GREEN: Implement minimal code to pass
  3. REFACTOR: Improve while maintaining tests

Simple and Human

  • No marketing fluff
  • Direct technical language
  • Working examples
  • Compact and scannable

Holistic Design

Components work together seamlessly:

  • Configuration hierarchy (book โ†’ chapter โ†’ spell)
  • Infrastructure discovery (lexicon + runic indexer)
  • Template reusability (glyphs)
  • Automatic orchestration (librarian)

Community

Next Steps

Choose your path:

I want to deploy my first application

โ†’ Getting Started Tutorial

I want to understand the architecture

โ†’ Navigation Guide โ†’ Path 2

I want to develop and test features

โ†’ Testing Guide โ†’ TDD Commands

I want to integrate infrastructure

โ†’ Glyphs Overview โ†’ Glyphs Reference