Pkl: Safe and Maintainable Config for Java Apps and Infrastructure
summary
Pkl is a new declarative config language that compiles to YAML/JSON and provides real type safety: schemas via classes, type constraints (eg port > 1024), nullability and reusable templates. Language bindings generate Java/Kotlin classes so Spring startup maps PKL directly into typed objects; demos show compilation errors catching bad types and a Spring app returning the mapped config. PKL libraries cover CloudFormation and Kubernetes, a CloudFormation stack deploys via rain deploys CloudFormation from PKL, Kubernetes manifests import to Rancher, and a GitHub Actions repo replaces dozens of hand‑edited YAMLs. Open Source by Apple typed config + templating
AI-written summary · about
chapters (15)
- 0:00Introduction
- 1:07What is Pkl
- 2:11Tooling and safety
- 3:58Types and constraints
- 6:27Schemas and classes
- 8:56Nullability and comments
- 10:00Type aliases and enums
- 11:29Objects and templating
- 14:38Functions and libraries
- 19:16Pkl with Spring
- 24:34Pkl in real-world infrastructure
- 27:25CloudFormation with Pkl
- 33:52Kubernetes deployments
- 39:50GitHub Actions with Pkl
- 46:13Q&A
related talks
46mPkl: Safe & Maintainable Config for Apps & Infrastructure
59mPkl: Safe and Maintainable Config for Java Apps and Infrastructure
50mThe DevOps Chronicles: Kubifying Java apps with Dekorate.io
41mEfficient DevOp Tooling with Java and GraalVM
49mPulumi: Manage Your Infrastructure with Your Favorite Programming Language
46m5 Ways to Make Java Development and Kubernetes Spark Joy With Quarkus.
01h 59mKubernetes for Java Developers
02h 31mPulumi, or How to Manage Your Infrastructure with Your Favorite Language
