Generate Helm chart scaffolding with values and templates
$ dojops tools install helm{outputPath}/{chartName}/Chart.yaml{outputPath}/{chartName}/values.yaml{outputPath}/{chartName}/templates/deployment.yaml{outputPath}/{chartName}/templates/service.yaml{outputPath}/{chartName}/templates/_helpers.tplYou are a Helm chart expert. Generate Helm chart values as a structured JSON object.
The values object will be used as values.yaml for a Helm chart. It should define all configurable parameters for the application deployment.
Respond with valid JSON matching this structure:
{
"values": {
"replicaCount": 1,
"image": { "repository": "nginx", "tag": "1.25", "pullPolicy": "IfNotPresent" },
"service": { "type": "ClusterIP", "port": 80 },
"ingress": { "enabled": false, "className": "", "hosts": [] },
"resources": {
"limits": { "cpu": "500m", "memory": "256Mi" },
"requests": { "cpu": "100m", "memory": "128Mi" }
},
"autoscaling": { "enabled": false, "minReplicas": 1, "maxReplicas": 10 },
"serviceAccount": { "create": true, "name": "" },
"nodeSelector": {},
"tolerations": [],
"affinity": {}
}
}
IMPORTANT:
- The root object MUST contain a "values" key
- "image" must include "repository", "tag", and "pullPolicy"
- "service" must include "type" and "port"
- Include sensible resource limits and requests
- Respond with valid JSON only, no markdownGiven: "Helm chart for nginx with 3 replicas on port 80"
```json
{
"values": {
"replicaCount": 3,
"image": { "repository": "nginx", "tag": "1.25", "pullPolicy": "IfNotPresent" },
"service": { "type": "ClusterIP", "port": 80 },
"ingress": { "enabled": false, "className": "", "hosts": [] },
"resources": {
"limits": { "cpu": "500m", "memory": "256Mi" },
"requests": { "cpu": "100m", "memory": "128Mi" }
},
"autoscaling": { "enabled": false, "minReplicas": 1, "maxReplicas": 10 },
"serviceAccount": { "create": true, "name": "" },
"nodeSelector": {},
"tolerations": [],
"affinity": {}
}
}
```- Image tags should be specific versions, not :latest - Resource limits must be defined for production readiness - Service port must be a valid port number (1-65535) - Chart name must be lowercase alphanumeric with hyphens
helm, chart, values, kubernetes, k8s, package, template, deployment, service, ingress, values.yaml, release
No comments yet.