KCL: Typed Configuration for the Cloud-Native World
Shriira Press
KCL is a constraint-based, record and functional configuration language that brings types, validation, and abstraction to the world of cloud-native configuration.
Welcome to KCL: Typed Configuration for the Cloud-Native World.
KCL is an open-source configuration and policy language, hosted by the Cloud Native Computing Foundation as a sandbox project, designed to tame the sprawl of YAML and templating that infrastructure teams wrestle with every day. Inspired by Python's readability but built around static typing, immutability, and constraint validation, it lets you describe configuration as schemas that the compiler can check before anything reaches a cluster. This book starts with the problem KCL was built to solve and what the language is, then tours its syntax — types, variables, collections, and control flow — before going deep on the two ideas that define it: schemas with a real type system, and validation through check blocks and rules. From there it covers configuration abstraction and the merge operators that make large config bases manageable, the package manager and OCI-based module system that let teams share that work, and KCL's rich integration with Kubernetes, CRDs, Helm, and Kustomize. The final chapter surveys the toolchain, the multi-language SDKs, the KusionStack platform, and the practices that make KCL pay off in production.
This title is part of the ShriIra library and is free to read in full, right here — our small contribution to making world-class knowledge easy to reach.
A note on reading it: open the Contents menu at the top of the reader to jump between chapters, use the Aa menu to set a comfortable text size, theme (light, sepia, or night), and single- or two-page layout. Your place is saved automatically, so you can always pick up where you left off.
We hope it serves you well.
— Shriira Press