application

by chaser100

Helm chartv0.4.5App 0.1.6MITVerified publisher

Universal Helm chart for deploying applications to Kubernetes

About this chart

Universal Helm Chart

A reusable universal Helm chart for deploying containerized applications to Kubernetes without maintaining a separate chart for every service.

Features

  • Deployments, Services, Ingress, and Gateway API HTTPRoutes
  • Jobs, CronJobs, and Horizontal Pod Autoscaling
  • ConfigMaps, Secrets, arbitrary volumes, and PersistentVolumeClaims
  • Init containers, sidecars, lifecycle hooks, and custom manifests
  • Optional Prometheus Operator ServiceMonitor
  • Argo CD, Flux, and other GitOps workflows

Requirements

  • Helm 3
  • Kubernetes 1.23+ for the complete built-in API set
  • Gateway API CRDs when route.enabled=true
  • Prometheus Operator CRDs when serviceMonitor.enabled=true

Optional CRDs are not installed by this chart.

Install

Add the repository:

helm repo add universal https://chaser100.github.io/u-helm-chart
helm repo update

Create a minimal values.yaml:

image: ghcr.io/example/my-app
imageTag: "1.0.0"

service:
  port: 8080

ingress:
  enabled: true
  className: nginx
  hosts:
    - host: app.example.com
      paths:
        - path: /
          pathType: Prefix

Install or upgrade the application:

helm upgrade --install my-app universal/application \
  --namespace my-app \
  --create-namespace \
  -f values.yaml

Pin a chart version in CI/CD:

helm search repo universal/application --versions

helm upgrade --install my-app universal/application \
  --version <VERSION> \
  --namespace my-app \
  --create-namespace \
  -f values.yaml

Connect an AI Agent with MCP

The project provides a hosted MCP knowledge service for AI-assisted chart configuration. It does not install anything into your Kubernetes cluster. The chart source of truth remains chaser100/u-helm-chart.

Server details:

  • Endpoint: https://helm.networkcat89.com/mcp
  • Transport: MCP Streamable HTTP
  • Protocol version: 2025-06-18
  • Server name: helm-networkcat89
  • Authentication: anonymous read access; write tools require an operator-provided Bearer token

Cursor and compatible MCP clients can use:

{
  "mcpServers": {
    "helm-networkcat89": {
      "url": "https://helm.networkcat89.com/mcp"
    }
  }
}

Check index freshness and list the available tools:

curl -sS https://helm.networkcat89.com/healthz

curl -sS https://helm.networkcat89.com/mcp \
  -H 'Content-Type: application/json' \
  -d '{"jsonrpc":"2.0","id":2,"method":"tools/list"}'

Anonymous read tools include:

  • search_docs for chart documentation
  • get_values_schema and explain_value for values configuration
  • list_examples and get_example for published examples
  • get_checklist for the production checklist
  • list_shapes and get_shape for workload shapes
  • resolve_resource for helm://... resources

MCP resources are available through resources/list and resources/read. Authenticated write tools include propose_improvement and open_feature_branch_pr, which create GitHub issues or mcp/** pull requests.

Discovery metadata is published at /llms.txt. Non-MCP clients can use the OpenAPI read interface described by /openapi.json; its operationId values match the MCP tool names.

See Connect an agent for the handshake example and setup instructions for Cursor, Claude, and generic HTTP MCP clients.

Common Use Cases

Deployment Strategy

The chart uses the Kubernetes default rollout behavior unless deploymentStrategy is set.

deploymentStrategy:
  type: RollingUpdate
  rollingUpdate:
    maxUnavailable: 0
    maxSurge: 1

Use type: Recreate for workloads that cannot run old and new Pods at the same time.

Main Container Arguments and Multiple Ports

args:
  - --config=/etc/application/config.yaml

revisionHistoryLimit: 2

containerPorts:
  - name: metrics
    containerPort: 8080
  - name: health
    containerPort: 8081

service:
  enabled: true
  ports:
    - name: metrics
      port: 8080
      targetPort: metrics
    - name: health
      port: 8081
      targetPort: health

Set service.enabled: false for workloads that do not need a chart-managed Service. Legacy single-port service.name, service.port, service.targetPort, service.protocol, and service.appProtocol values remain supported.

Existing Service Account

Disable ServiceAccount creation and reference an account managed outside this chart:

serviceAccount:
  create: false
  name: existing-service-account

When name is empty, the chart omits serviceAccountName from the Pod spec. Kubernetes then assigns the namespace default ServiceAccount.

Gateway API HTTPRoute

Use the simple fields for a single path routed to the chart-managed Service:

service:
  port: 8080

route:
  enabled: true
  gateway: public-gateway
  gatewayNamespace: gateway-system
  hostname: app.example.com
  path: /

For multiple matches, filters, traffic splitting, or other Gateway API options, set a complete HTTPRoute.spec under route.spec:

fullnameOverride: my-app

service:
  port: 8080

route:
  enabled: true
  name: my-app
  spec:
    parentRefs:
      - name: public-gateway
        namespace: gateway-system
        sectionName: https
    hostnames:
      - app.example.com
    rules:
      - matches:
          - path:
              type: Exact
              value: /health
          - path:
              type: PathPrefix
              value: /api
        backendRefs:
          - name: my-app
            port: 8080

When route.spec is non-empty, it replaces the spec generated from route.gateway, route.hostname, route.path, and the other simple route fields. HTTPRoute metadata still comes from route.name, route.labels, and route.annotations.

Service Application Protocol

The chart-managed Service accepts an optional application protocol hint:

service:
  name: http
  port: 9005
  targetPort: http
  appProtocol: grpc

Services created for ingressPlain paths support the same field:

ingressPlain:
  enabled: true
  items:
    - rules:
        - host: grpc.example.com
          paths:
            - path: /
              backend:
                service:
                  name: grpc-api
                  port: 9005
              createService: true
              service:
                port: 9005
                targetPort: http
                appProtocol: grpc

The chart omits appProtocol when it is not configured for either Service type.

ExternalSecret Lifecycle

ExternalSecret objects in extraManifests are ordinary resources by default. The chart does not add Helm hooks automatically.

For Argo CD ordering, add a sync wave directly to the manifest:

extraManifests:
  - apiVersion: external-secrets.io/v1beta1
    kind: ExternalSecret
    metadata:
      name: app-secrets
      annotations:
        argocd.argoproj.io/sync-wave: "-5"
    spec:
      # ExternalSecret spec

Set externalSecretHooks.enabled: true only when the legacy automatic Helm pre-install/pre-upgrade hook behavior is required.

Horizontal Autoscaling

replicaCount: 2

resources:
  requests:
    cpu: 200m
    memory: 256Mi

autoscaling:
  enabled: true
  minReplicas: 2
  maxReplicas: 10
  targetCPUUtilizationPercentage: 70

Database Migration Job

job:
  enabled: true
  name: database-migration
  image: ghcr.io/example/my-app
  imageTag: "1.0.0"
  command: ["/bin/sh", "-c"]
  args: ["./app migrate"]

Persistent Storage

persistentVolumeClaims:
  - name: application-data
    size: 10Gi
    storageClassName: standard
    accessModes:
      - ReadWriteOnce
    mountPath: /var/lib/application

Sidecar Container

extraContainers:
  enabled: true
  containers:
    - name: log-collector
      image: fluent/fluent-bit:latest
      volumeMounts:
        - name: application-logs
          mountPath: /var/log/application

volumes:
  - name: application-logs
    emptyDir: {}

Prometheus ServiceMonitor

The ServiceMonitor is disabled by default and does not affect clusters without the Prometheus Operator.

service:
  name: http
  port: 9113

serviceMonitor:
  enabled: true
  labels:
    release: kube-prometheus-stack
  endpoints:
    - port: http
      path: /metrics
      interval: 30s

Tested Configurations

Documentation

Uninstall

helm uninstall my-app --namespace my-app

License

MIT

Deploy application with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has application on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartapplication is pinned at v0.4.5 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below
opentenant validate opentenant.yaml
terraform init && terraform apply