Validate a Basic Web App values.yaml
Validate a standard Helm values.yaml for a web application with image, service, ingress, and resource settings. Covers the most common chart patterns.
Detailed Explanation
Standard Web Application Values
The most common Helm chart pattern is a simple web application deployment with an image, a Service, an optional Ingress, and resource limits. The validator checks that each section follows Helm conventions.
Example values.yaml
replicaCount: 1
image:
repository: nginx
pullPolicy: IfNotPresent
tag: "1.25.0"
service:
type: ClusterIP
port: 80
ingress:
enabled: false
className: ""
annotations: {}
hosts:
- host: chart-example.local
paths:
- path: /
pathType: ImplementationSpecific
tls: []
resources:
limits:
cpu: 100m
memory: 128Mi
requests:
cpu: 100m
memory: 128Mi
What Gets Validated
- Image section:
image.repositorymust be a string,image.tagshould not be empty or "latest", andimage.pullPolicymust be one of Always, IfNotPresent, or Never. - Service section:
service.typeis checked against valid Kubernetes service types (ClusterIP, NodePort, LoadBalancer, ExternalName). - Ingress section: When enabled, host paths must have valid
pathTypevalues (ImplementationSpecific, Exact, Prefix). - Resources section: Both
limitsandrequestsshould be present; having limits without requests or vice versa is flagged.
Common Issues
- Using
image.tag: latest(warning: not recommended for production) - Missing
resources.requestswhenresources.limitsis defined - Invalid
service.typevalues like "Headless" (should be ClusterIP with clusterIP: None)
Use Case
Reviewing a newly scaffolded Helm chart (from 'helm create') before your first deployment. Ensures the default values follow Kubernetes and Helm best practices.
Try It — Helm Values Validator
Related Topics
Validate Helm Image Configuration Patterns
Basic Configuration
Validate Kubernetes Resource Limits and Requests
Resource Management
Validate Helm Ingress Configuration
Ingress & Networking
Validate Kubernetes Service Type Configuration
Basic Configuration
Validate HPA Autoscaling Configuration in Helm
Resource Management