How cdk8s-team/cdk8s works
Main Components
a) Core Framework Components:
• CDK8s Core (central component)
• CLI Tool
• CDK8s Plus (high-level constructs)
• Language Bindings (TypeScript, Python, Java, Go)
b) Build/Synthesis Pipeline:
• Source Code Input
• Construct Tree Processing
• Kubernetes Manifest Generation
• Output Directory (dist)
c) Integration Points:
• Kubernetes Cluster Interface
• Helm Chart Integration
• Custom Resource Definitions (CRD) Support
• AWS CDK Interoperability
[Developer Code] --> [Language Bindings] --> [CDK8s CLI]
[CDK8s Core Library]
[Construct Tree]
[CDK8s Plus Abstractions]
[Manifest Synthesis] --> [Kubernetes YAML]
Key Relationships to Highlight
• Construct hierarchy:
• App (root)
• Charts
• Constructs
• Resources
• Synthesis flow:
• Source Code -> Construct Tree -> K8s Manifests -> Kubernetes Cluster
Important Details
• Version support for different Kubernetes schemas (v1.14.0 - v1.31.0)
• Supported language bindings
• Helm chart integration capabilities
• Custom Resource Definition support
• Testing framework integration
Specific Implementation Notes
• How the CLI tools (import, init, synth) interact with the system
• Escape hatch mechanism for direct YAML manipulation
• Demonstrate the relationship between CDK8s Plus and core components
• How the construct library interfaces with Kubernetes resources