ENGINEERING NOTE

Express Kubernetes Workload Intent in Values

How a generic Helm chart can expose safe application choices without becoming a maze of templates.

A reusable Kubernetes Helm chart should make an application’s operational intent immediately obvious during code review. The goal is not to abstract Kubernetes away behind opaque macros; it is to expose common production controls in a structured, schema-validated vocabulary that teams can keep in Git.

When designing shipform, I anchored the architecture around “flexible by values, simple by templates”. Supporting Deployments, StatefulSets, Jobs, and CronJobs in a single chart stays maintainable only when every values block maps cleanly to an operational responsibility.

Mapping workload intent to reviewable configuration

Operational Intent Reviewable Values Contract
Serve external or internal traffic Explicit ports, Service / Ingress toggles, TLS termination boundary, distinct readiness vs. liveness probes
Scale under variable load Guaranteed CPU/memory requests, bounded limits, HorizontalPodAutoscaler thresholds, PodDisruptionBudget
Process asynchronous queues Worker entrypoint override, Service disabled, graceful termination window (terminationGracePeriodSeconds)
Run stateful workloads StatefulSet identity, persistent volume claim templates, ordered rollout semantics
Govern identity & secrets Dedicated ServiceAccount, least-privilege RBAC, and ExternalSecret references instead of plaintext values

Separating probe semantics and schema validation

As the Kubernetes probe documentation emphasizes, liveness, readiness, and startup probes govern fundamentally different failure actions. Pointing all three at a heavy dependency check can turn a transient database blip into a cascading pod-restart storm. A good chart schema encourages fast, local liveness checks and dependency-aware readiness gates:

probes:
  startup:
    httpGet: { path: /healthz/startup, port: http }
    failureThreshold: 30
    periodSeconds: 2
  readiness:
    httpGet: { path: /healthz/ready, port: http }
    periodSeconds: 5
  liveness:
    httpGet: { path: /healthz/live, port: http }
    periodSeconds: 10

Pairing values.yaml with a strict values.schema.json catches missing image tags, invalid replica bounds, or malformed security contexts in CI before helm template or Argo CD ever touches a cluster—keeping GitOps diffs deterministic and human-reviewable.