Part 2: Creating Your First Chart
Introduction
The TypeScript Application
Project Structure
typescript-api/
βββ src/
β βββ server.ts
β βββ routes/
β β βββ health.ts
β βββ config/
β βββ index.ts
βββ package.json
βββ tsconfig.json
βββ Dockerfile
βββ helm-chart/ # We'll create thisThe Application Code
Creating the Chart
Initialize Chart Structure
Chart.yaml - Chart Metadata
values.yaml - Default Configuration
Template Helpers
Deployment Template
Service Template
ConfigMap Template
ServiceAccount Template
Ingress Template (Optional)
HorizontalPodAutoscaler Template (Optional)
NOTES.txt - Post-Install Instructions
Testing the Chart
Lint the Chart
Dry Run Installation
Template Rendering
Install the Chart
Verify Installation
Environment-Specific Values
Upgrading and Rolling Back
Upgrade a Release
Rollback a Release
Debugging Chart Issues
Templates Not Rendering
Failed Installation
Value Not Applied
Best Practices from Experience
What's Next?
Key Takeaways
Last updated