Validate Helm Ingress Configuration
Check ingress settings in Helm values.yaml including hosts, paths, pathType, TLS, and className against Kubernetes Ingress API conventions.
Detailed Explanation
Ingress Configuration Validation
The ingress section in Helm charts controls external HTTP/HTTPS access to your services. With the transition from Ingress v1beta1 to v1, the configuration requirements have become stricter.
Standard Pattern
ingress:
enabled: true
className: nginx
annotations:
cert-manager.io/cluster-issuer: letsencrypt-prod
nginx.ingress.kubernetes.io/ssl-redirect: "true"
hosts:
- host: app.example.com
paths:
- path: /
pathType: Prefix
- host: api.example.com
paths:
- path: /v1
pathType: Prefix
- path: /v2
pathType: Prefix
tls:
- secretName: app-tls
hosts:
- app.example.com
- api.example.com
What Gets Validated
- pathType values: Must be one of
ImplementationSpecific,Exact, orPrefix. This field is required in Ingress v1. - Type checks:
ingress.enabledshould be boolean,hostsandtlsshould be arrays,annotationsshould be an object. - Structure: Each host entry should have
host(string) andpaths(array).
pathType Reference
| pathType | Behavior |
|---|---|
ImplementationSpecific |
Matching depends on the IngressClass controller |
Exact |
Matches the URL path exactly (case-sensitive) |
Prefix |
Matches based on a URL path prefix split by / |
Common Mistakes
Missing pathType (required in Ingress v1):
paths:
- path: /
# pathType missing - API will reject this
Wrong pathType value:
paths:
- path: /api
pathType: prefix # Must be "Prefix" (capital P)
Boolean annotation values not quoted:
annotations:
nginx.ingress.kubernetes.io/ssl-redirect: true
# Should be "true" (string) - YAML boolean may cause issues
Use Case
Setting up HTTPS ingress with cert-manager for a multi-domain application where incorrect pathType or TLS configuration would result in routing failures or certificate errors.
Try It — Helm Values Validator
Related Topics
Validate a Basic Web App values.yaml
Basic Configuration
Validate Kubernetes Service Type Configuration
Basic Configuration
Validate TLS and Certificate Configuration in Helm
Ingress & Networking
Production Readiness Checklist for Helm Values
Advanced Patterns
Compare Default vs Override Values for Multi-Environment
Advanced Patterns