gentleman

by Made by Man

Helm chartv0.2.0App 0.4.1MITVerified publisher

Declarative AI agent server — MCP for tools, A2A for agents, AG-UI for humans

About this chart

gentleman

Declarative AI agent server — MCP for tools, A2A for agents, AG-UI for humans.

This chart deploys gentleman on Kubernetes. Agents are declared as YAML in values.yaml, rendered into one ConfigMap per agent, and mounted into the pod as one directory per agent.

Source: https://github.com/madebyman/gentleman

Install

Install the chart from ghcr:

helm install gentleman oci://ghcr.io/madebyman/charts/gentleman

Check the deployment:

kubectl rollout status deploy/gentleman
helm test gentleman

Forward a local port to the service:

kubectl port-forward svc/gentleman 8000:80

Then the interfaces are available at:

AG-UI : http://localhost:8000/agui
A2A   : http://localhost:8000/a2a
MCP   : http://localhost:8000/mcp

With no values at all, the chart ships a built-in example agent using gentleman:echo, so it runs without any credentials.

Agents

gentleman reads one directory per agent: <name>/agent.yaml (or <name>/a2a.yaml for a remote agent), with an optional <name>/mcp_config.json. The chart keeps that layout.

Each key under agents is an agent name, and holds that agent's files:

agents:
  concierge:
    agent.yaml:
      model: gentleman:echo
      description: Front desk.
      routing:
        visibility: public
        delegates: [writer]
    mcp_config.json:
      mcpServers:
        time:
          command: uvx
          args: [mcp-server-time]
  writer:
    agent.yaml:
      model: gentleman:echo
  far:
    a2a.yaml:
      url: https://far.example.com/a2a/far

Inside the pod:

/app/agents/concierge/agent.yaml
/app/agents/concierge/mcp_config.json
/app/agents/writer/agent.yaml
/app/agents/far/a2a.yaml

agent.yaml and a2a.yaml are written as YAML, mcp_config.json as JSON. The schema rejects other file names, both agent.yaml and a2a.yaml in one agent, mcp_config.json next to a2a.yaml, and names starting with . (gentleman skips such directories).

The chart lays an emptyDir at agentsMountPath and mounts one ConfigMap per agent on top of it, so the image's built-in example never mixes in.

When agents and existingAgents are both empty, defaultAgents is used instead. It holds the built-in example, so helm install gentleman works out of the box. Once you set either, defaultAgents is ignored.

Changes to agents or defaultAgents roll the pods automatically (checksum/agents).

Agent names that are not valid Kubernetes names (my_agent, Writer) are fine: the ConfigMap and volume get a sanitized name with a short hash, and the directory keeps the real name.

gentleman starts every agent's MCP servers before it opens its port, one after another (initTimeout, 30s each by default). startupProbe allows 150s for that; raise startupProbe.failureThreshold for more servers.

Your own ConfigMaps

To manage an agent outside the chart, make one ConfigMap per agent from its directory — each file becomes a key:

kubectl create configmap my-writer --from-file=agents/writer

and map agent names to ConfigMap names:

existingAgents:
  writer: my-writer

agents and existingAgents can be used together, but the same agent name in both fails the render.

NOTE: ConfigMaps in existingAgents are not watched. Restart the deployment after changing them:

kubectl rollout restart deploy/gentleman

NOTE: A missing ConfigMap keeps the pod in ContainerCreating (FailedMount).

Your own volume

To bring your own volume (e.g. a PVC), mount no agents from the chart:

defaultAgents: null
extraVolumes:
  - name: agents
    persistentVolumeClaim:
      claimName: my-agents
extraVolumeMounts:
  - name: agents
    mountPath: /app/agents
    readOnly: true

Secrets

Model provider credentials are passed to the container as environment variables from a Secret.

Use an existing Secret (recommended):

kubectl create secret generic gentleman-secrets \
  --from-literal=ANTHROPIC_API_KEY=sk-ant-...

secrets:
  existingSecret: gentleman-secrets

Or let the chart create one:

secrets:
  create: true
  data:
    ANTHROPIC_API_KEY: sk-ant-...

Every key in the Secret becomes an environment variable (envFrom).

Setting secrets.data without secrets.create: true fails the render, so credentials are never dropped silently.

Exposing

appOrigin is the public origin gentleman advertises. When it is empty, it is derived from the first ingress host, or falls back to http://localhost:8000. Set it explicitly behind a proxy or an HTTPRoute.

Ingress:

appOrigin: https://agents.example.com
ingress:
  enabled: true
  className: traefik
  hosts:
    - host: agents.example.com
      paths:
        - path: /
          pathType: Prefix
  tls:
    - secretName: gentleman-tls
      hosts:
        - agents.example.com

Gateway API (HTTPRoute):

appOrigin: https://agents.example.com
httpRoute:
  enabled: true
  parentRefs:
    - name: gateway
      sectionName: https
  hostnames:
    - agents.example.com

httpRoute.rules replaces the generated rule entirely, for when a single path prefix is not enough. httpRoute.timeouts applies to the generated rule only; with rules, write timeouts in each rule yourself.

AG-UI streams over SSE. Make sure the proxy in front of it does not buffer responses or cut idle connections too early:

Traefik  — disable response buffering for the route.
AWS ALB  — alb.ingress.kubernetes.io/load-balancer-attributes:
           idle_timeout.timeout_seconds=300
Gateway  — httpRoute.timeouts.request covers the whole stream; its
           default depends on the implementation ("0s" disables it):

             httpRoute:
               timeouts:
                 request: 300s
                 backendRequest: 300s

Enabling both ingress and httpRoute is supported for migration, but the same hostname may be served twice. Disable one once the cutover is complete.

Replicas

Run gentleman with one replica:

replicaCount: 1
autoscaling:
  enabled: false

A2A tasks are kept in memory, in the pod that received them. With more than one replica, tasks/get and tasks/resubscribe for a task may reach another pod and fail (task not found).

AG-UI and MCP keep no state between requests, but the A2A interface is served by the same pod, so the limit applies to the whole deployment.

Tasks do not survive a restart or a rollout either: a task started on the old pod is gone once it stops.

Values

Deployment

KeyDescriptionDefault
replicaCountNumber of replicas (ignored when autoscaling is enabled). Keep it at 1 — see Replicas1
autoscaling.enabledCreate a HorizontalPodAutoscaler. Keep it off — see Replicasfalse
autoscaling.minReplicasMinimum replicas1
autoscaling.maxReplicasMaximum replicas100
autoscaling.targetCPUUtilizationPercentageTarget CPU utilization80
image.repositoryContainer imageghcr.io/madebyman/gentleman
image.tagImage tag (defaults to the chart appVersion)""
image.pullPolicyImage pull policyIfNotPresent
nameOverrideOverride the chart name""
fullnameOverrideOverride the full resource name""

Pod

KeyDescriptionDefault
podAnnotationsExtra pod annotations{}
podLabelsExtra pod labels{}
podSecurityContextPod security contextnon-root, uid/gid 1000
securityContextContainer security context{}
resourcesContainer resources100m / 256Mi, limit 512Mi
startupProbeHolds off the other probes until startup completes, MCP servers included (150s)see values
livenessProbeRestarts the container when /health failssee values
readinessProbeTakes the pod out of the Service when /ready returns 503 (starting up, shutting down)see values
extraVolumes / extraVolumeMountsAdditional volumes and mounts[]
nodeSelector / affinity / tolerationsSchedulingempty

Environment

KeyDescriptionDefault
appOriginPublic origin advertised by gentleman""
envEnvironment variables (GENTLEMAN_*)see below
extraEnvAdditional env entries, as in a container spec[]
secrets.existingSecretName of an existing Secret to load as env""
secrets.createCreate a Secret from secrets.datafalse
secrets.dataKey/value pairs for the created Secret{}

Agents

KeyDescriptionDefault
agentsMountPathWhere agent directories are mounted/app/agents
agentsYour agents, keyed by agent name, then file name{}
existingAgentsAgents from your own ConfigMaps, as name: ConfigMap{}
defaultAgentsUsed only when agents and existingAgents are empty; null for noneexample

Networking

KeyDescriptionDefault
service.typeService typeClusterIP
service.portService port80
service.targetPortContainer port8000
ingress.enabledCreate an Ingressfalse
ingress.classNameIngressClass name""
ingress.annotationsIngress annotations{}
ingress.hostsHosts and pathslocalhost, /
ingress.tlsTLS entries[]
httpRoute.enabledCreate a Gateway API HTTPRoutefalse
httpRoute.annotationsHTTPRoute annotations{}
httpRoute.parentRefsGateways to attach togateway / http
httpRoute.hostnamesHostnames (templated)[]
httpRoute.path / httpRoute.pathTypeMatch for the generated rule/ / PathPrefix
httpRoute.timeoutsrequest / backendRequest for the generated rule; ignored with rules{}
httpRoute.rulesReplace the generated rule (templated)[]

ServiceAccount

KeyDescriptionDefault
serviceAccount.createCreate a ServiceAccounttrue
serviceAccount.nameServiceAccount namegentleman
serviceAccount.automountMount the API tokentrue
serviceAccount.annotationse.g. IRSA role ARN{}

Default env:

GENTLEMAN_APP_NAME: Gentleman
GENTLEMAN_APP_EXPOSE: '["agui","a2a","mcp"]'
GENTLEMAN_CORS_ALLOW_ORIGINS: '[]'
GENTLEMAN_REMOTE_MAX_HOP: '8'

GENTLEMAN_APP_AGENTS_DIR and GENTLEMAN_APP_ORIGIN are set by the chart from agentsMountPath and appOrigin.

License

MIT

Deploy gentleman with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has gentleman 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 chartgentleman is pinned at v0.2.0 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