How iits-consulting/charts works
Project type and purpose
• This is a Helm‐charts repository (“IITS helm charts”) that packages multiple Kubernetes applications and utilities (e.g., cert‐manager, argocd, kafka, traefik, custom admin dashboard).
• Purpose: Provide versioned, well‐documented, testable charts that deploy into Kubernetes clusters behind an OIDC proxy and Traefik ingress.
File structure
• Top‐level:
• .github/workflows → CI pipelines for linting, testing and releasing charts
• charts/ → one subdirectory per public chart, each with Chart.yaml, values.yaml, templates/ and own README.md
• tests/ → kubernetes‐manifest tests for Kyverno policies
• create-trivy-ignore.sh, kubeconform-values.yaml → utility scripts/config for security scanning and schema validation
• Each chart subfolder follows Helm conventions: Chart.yaml (metadata), values.yaml (configurable parameters), templates/ (Kubernetes resource templates), NOTES.txt, optional subcharts.
• CI config uses GitHub Actions to: validate chart schemas, run helm-docs, run security scans (Trivy), run tests, then publish to Helm repo.
README for additional insights
• Acceptance criteria enforce Helm best practices: documented values, health checks, horizontal pod autoscaler, mutating webhook integration, subchart usage, NOTES.txt, licensing, .helmignore.
• External dependencies: OIDC proxy, Traefik Ingress Controller, Kyverno mutating/webhook policies.
a. Main components:
• Developer Workspace / GitHub Repo
• CI/CD Pipeline (GitHub Actions)
• Chart Repository (publish target, e.g., GitHub Pages or OCI registry)
• Kubernetes Cluster(s)
• Ingress Layer: Traefik
• Authentication: OIDC Proxy
• Kyverno Webhook Server
• Applications deployed by charts (AKHQ, Kafka, Elastic Stack, custom dashboards…)
• External Tools: Helm CLI, helm-docs, Trivy, kubeconform
b. Relationships and data flow:
1. Developer commits to GitHub → triggers GitHub Actions
2. CI Pipeline runs lint (helm lint), docs (helm-docs), security scan (Trivy), schema validation (kubeconform), unit tests (helm unittest, Kyverno tests)
3. On success, pipeline packages charts & publishes to Chart Repository
4. In target Kubernetes cluster, operators or users run helm install/upgrade pulling charts from the repository
5. Charts deploy Kubernetes CRDs, Deployments, Services, Ingress, ConfigMaps, HPA, Secrets (via mutating webhook injection)
6. Traefik handles ingress traffic, OIDC proxy enforces authentication, Kyverno mutates/injects secrets and enforces policies
c. Architectural patterns & principles:
• Modular packaging: one chart per component, use of subcharts for common dependencies
• GitOps/CICD: GitHub Actions automates validation and chart publication
• Policy‐as‐code: Kyverno policies as separate test files and templates
• Security by design: Trivy, mutating webhook for secrets, horizontal pod autoscalers, health checks
d. Key technologies/frameworks:
• Helm (charts, templates, values)
• Kubernetes (Deployments, StatefulSets, Ingress, RBAC)
• GitHub Actions (CI workflows: check_charts.yaml, release_charts.yaml, update_documentation.yaml)
• Traefik (Ingress Controller)
• OIDC Proxy (authentication)
• Kyverno (policy & mutating webhook)
• Tools: helm-docs, Trivy, kubeconform, helm unittest