Kubernetes settings reference

Every setting of a Topic’s Kubernetes tab, of an Agent’s Kubernetes tab and of a Kubernetes profile. The same texts are shown in the editor when you point at a setting.


How to read this page

  • Default is what a new Topic gets. Values marked installation come from the installation’s settings (the K8S_TOPIC_* and K8S_GRAPHRAG_* variables on the page Kubernetes installation) and are copied into the Topic when it is created. A later change of the installation’s value does not reach existing Topics — Reset to default on the tab takes the current values.

  • Not set (null, or the key left out) means: the installation’s value, else the built-in value. Empty ("", {}, []) is a value of its own, for example "cpuLimit": "" = no limit.

  • A key the format does not know is refused with its place, for example "`resources.chat.cpuLimt` is not a known setting". So a typo never silently does nothing.

  • Every change takes effect with a restart of the Topic.

  • Values that the installation’s administrator limited (servers, CPU, memory, disk) are refused above the limit, with the limit in the message.

Primary and chat servers. Settings with a primary and a chat part can differ between the two kinds of servers. The primary server answers chats and is the only one that takes uploads, so it may need more memory. The chat servers exist only with two or more servers; with one server, the chat part is not used.

Agents use the same format with a few differences:

  • All servers of an Agent are the same, so only the chat part counts: resources.chat and placement.chat set every server. Default number of servers, sizes and shutdown wait: the K8S_AGENT_* variables of the installation, copied into the Agent when it is created.

  • Only Agents have availability.shutdownSeconds and the tools settings (see below); a Topic refuses them.

  • An Agent refuses resources.primary, placement.primary, resources.tmp, availability.maxSurge, availability.primaryGraceSeconds, security and the proxy settings egress.httpProxy, egress.httpsProxy, egress.noProxy and egress.caBundleConfigMap. They are left out of an Agent’s editor.

  • An Agent’s readiness check starts after 10 seconds, and its checks use the address /actuator/health.

  • An Agent may scale automatically from one server on (a Topic needs at least two).


version

Setting What it does Default

version

Format version of this document. Must be 1.

1

scaling — how many servers

Kubernetes: the replicas of the Deployments and, when the maximum is above the minimum, a HorizontalPodAutoscaler for the chat servers.

Setting What it does Default

scaling.minServers

How many servers run at least. 1 is enough for testing and few users. More servers answer more users at the same time and keep the chat available while one restarts. Each server needs its own CPU and memory.

1

scaling.maxServers

How many servers may run at most. Equal to the minimum: always exactly that many. Higher: more servers start when the processors are busy, and stop again later. More than the minimum needs a minimum of at least 2 and the cluster’s metrics server.

1

scaling.cpuTargetPercent

Only when the maximum is above the minimum: how busy the processors may be, in percent, before another server starts. Lower: servers start earlier and the chat stays fast, but the Topic uses more of the cluster. Higher: fewer servers, slower under load.

70 installation

scaling.scaleDownStabilizationSeconds

Only when the maximum is above the minimum: how many seconds the load must stay low before a server is stopped again. Longer: fewer starts and stops when the load goes up and down. Shorter: the cluster gets its resources back sooner.

300

resources — CPU, memory, disk

Kubernetes: resources.requests and resources.limits of the container, the emptyDir at /tmp, and JAVA_TOOL_OPTIONS. Each of resources.primary and resources.chat has these keys:

Setting What it does Default

resources.primary.cpuRequest, resources.chat.cpuRequest

Processor time reserved for the server, for example "500m" (half a processor) or "1". Higher: the server is placed only where that much is free, and stays fast. Lower: fits on more machines, but can be slow when the machine is busy.

"250m" installation

resources.primary.cpuLimit, resources.chat.cpuLimit

The most processor time the server may use, for example "2". Empty (""): no limit. Lower: the server is slowed down when it reaches it.

"2" installation

resources.primary.memoryRequest, resources.chat.memoryRequest

Memory reserved for the server, for example "1Gi". Higher: placed only where that much is free. Lower: fits on more machines.

"512Mi" installation

resources.primary.memoryLimit, resources.chat.memoryLimit

The most memory the server may use, for example "2Gi". If the server needs more, the cluster stops and restarts it. Too low: uploads of large documents fail.

"2Gi" installation

resources.primary.ephemeralStorageLimit, resources.chat.ephemeralStorageLimit

The most disk space the server may use on its machine, for example "10Gi". Empty (""): no limit. Too low: large uploads fail.

""

resources.jvmHeapPercent

Share of the memory limit, in percent, that the program may use for its data (Java heap). Higher: more room for large uploads, but less for everything else, and the server can be stopped by the cluster for using too much memory. Not set: the program’s default.

not set

resources.tmp.sizeLimit

The largest size of the temporary folder, for example "2Gi". Empty (""): no limit. Too low: large uploads fail.

""

resources.tmp.inMemory

true: the temporary folder is kept in memory. Faster, but it counts against the memory limit. false: on the machine’s disk.

false

placement — where the servers run

Kubernetes: nodeSelector, tolerations, topologySpreadConstraints and priorityClassName of the pods. Each of placement.primary and placement.chat has nodeSelector and tolerations.

Setting What it does Default

placement.primary.nodeSelector, placement.chat.nodeSelector

Labels a machine must have, for example {"pool": "large"}. Empty ({}): any machine.

{}

placement.primary.tolerations, placement.chat.tolerations

Lets the servers run on machines that are reserved for special work (tainted machines). Empty ([]): only on normal machines. Each entry has key (the reservation’s key), operator (Equal — the value must match, Exists — any value), value (only with Equal), effect (NoSchedule, PreferNoSchedule or NoExecute; empty: all) and tolerationSeconds (only with NoExecute).

[]

placement.spread

How the servers are spread over machines and zones. NONE — no rule. PREFERRED — spread when possible, so one failing machine stops fewer servers. REQUIRED — always spread; a server that finds no free machine does not start.

"NONE"

placement.priorityClassName

Name of a priority class of the cluster. Servers with a higher priority are started first and stopped last when the cluster is full. Not set: the cluster’s default.

not set

availability — restarts and maintenance

Kubernetes: a PodDisruptionBudget, the rolling update of the chat servers, a preStop wait and the terminationGracePeriodSeconds of the primary server.

Setting What it does Default

availability.pdbMaxUnavailable

How many servers the cluster may stop at the same time for maintenance, for example 1. Set it only with more than one server; with one server, maintenance still stops the chat. Not set: no limit.

not set

availability.maxSurge

How many extra servers may start during a restart, so the chat stays available. Higher: faster restarts, but more resources for a short time.

1

availability.preStopSeconds

Seconds a server waits before it shuts down, so the cluster stops sending it new chats first. 5 is usually enough. 0: no wait.

0

availability.primaryGraceSeconds

Seconds the primary server gets to finish a running upload or community rebuild when it is stopped. Longer: fewer interrupted uploads, but a restart can take that long.

600 installation

availability.shutdownSeconds

Agents only. Seconds a server gets to finish its running chats and scheduled run when it is stopped or replaced, for example during a restart. Longer: long answers can finish, but a stop or a pipeline change takes that long. Shorter: quicker restarts, but long answers are cut off. A run waiting for an approval always ends at once. Kubernetes: SPRING_LIFECYCLE_TIMEOUT_PER_SHUTDOWN_PHASE; the pod’s grace period is 30 seconds more.

1200 installation

metadata — labels and annotations

Setting What it does Default

metadata.labels

Extra labels on every server, for example {"team": "support"}. Names this application uses itself are refused.

{}

metadata.podAnnotations

Extra annotations on every server, for tools of the cluster.

{}

metadata.serviceAnnotations

Extra annotations on the Topic’s network addresses (Services), for example for a load balancer.

{}

observability — metrics and traces

Setting What it does Default

observability.prometheus

true: the servers offer their metrics to Prometheus. Not set: the installation’s setting.

not set

observability.podMonitor

true: a PodMonitor tells the Prometheus Operator to collect the metrics. Needs the Prometheus Operator in the cluster; without it the start only warns.

false

observability.otlpEndpoint

Address that receives traces (OpenTelemetry), for example "http://otel-collector:4318". Not set: the installation’s setting.

not set

image — the program version

Setting What it does Default

image.reference

A different program version for this Topic only, for example for a test. Must be the same product and the same major version as the installation’s. Not set (recommended): the installation’s version.

not set

image.pullPolicy

When the cluster loads the program again: IfNotPresent — only if it is missing. Always — at every start. Never — never; it must already be there.

"IfNotPresent" installation

image.pullSecrets

Names of the cluster’s access secrets for a private registry, for example ["registry-creds"].

[]

env — extra environment variables

Setting What it does Default

env

Extra environment variables for every server, as name and value. Names that this application sets itself are refused (for example everything starting with CYROCK_, SPRING_ or JAVA_, and HTTP_PROXY). SPRING_APPLICATION_JSON is allowed with logging settings only, for example {"logging.level.ai.cyrock": "DEBUG"}.

{}

security — how the servers run

Setting What it does Default

security.serviceAccountName

Name of a service account the servers run under, for example for access to cloud services. Not set: none. The models are not called with it.

not set

security.automountToken

true: the servers get a key for the cluster’s own interface. They never use it; leave it false unless a tool of the cluster requires it.

false

security.openShiftCompatible

true: for OpenShift, which chooses the user id of the servers itself. false: the servers run with their fixed user id.

false

security.runtimeClassName

Name of a runtime class of the cluster, for example for sandboxed containers. Not set: the cluster’s default.

not set

egress — the way out of the cluster

Setting What it does Default

egress.httpProxy

Proxy for addresses reached with http, for example "http://proxy:3128". Use it when the servers may reach model servers or other services outside the cluster only through a company proxy. Only host:port: a proxy that asks for a login is not supported. Not set: the servers connect directly.

not set

egress.httpsProxy

Proxy for addresses reached with https (most cloud model services), for example "http://proxy:3128" — the address of the proxy itself starts with http:// even here. Not set: https addresses are reached directly.

not set

egress.noProxy

Addresses reached without the proxy, separated by commas, for example "models.internal,.corp.example": a name with a leading dot means everything below it. The cluster’s own addresses (.svc, .cluster.local), the chat history database and this application are always added, so chat history, sign-in and other Topics keep working. Address ranges such as 10.0.0.0/8 cannot be used; list the hosts. Only used with a proxy.

not set

egress.caBundleConfigMap

Name of a ConfigMap in this application’s namespace with extra certificates (PEM files) the servers trust, for example of a company proxy that inspects https, or of a model server with its own certificate authority. Every file in it must hold at least one certificate; otherwise the servers do not start. Not set: only the usual public authorities are trusted.

not set

egress.hostAliases

Fixed addresses for host names that the cluster’s name service does not know. Each entry has ip and hostnames, for example [{"ip": "10.0.0.5", "hostnames": ["models.internal"]}].

[]

egress.dnsConfig.nameservers

Addresses of name servers to ask.

not set

egress.dnsConfig.searches

Domains tried after a short host name.

not set

egress.dnsConfig.options

Options of the name service, for example [{"name": "ndots", "value": "2"}].

not set

The chat history database and graph databases are reached directly, never through the proxy. With TLS they are checked against the extra certificates too.

chatHistory — the chat history database

Setting What it does Default

chatHistory.poolSize

Database connections each server keeps for the chat history. Higher: more chats at the same time without waiting. All servers of a Topic together (maximum servers × pool size) must stay within the database login’s limit (TOPIC_HISTORY_DB_CONNECTION_LIMIT).

not set installation

probes — health checks

Kubernetes: the startupProbe, readinessProbe and livenessProbe of the container. Each of probes.startup, probes.readiness and probes.liveness has these keys; a check that leaves a key out keeps its built-in value. The readiness check decides whether a server gets chats, the liveness check whether it is restarted. The startup check (not set: none) gives a slow-starting server time before the other two begin.

Setting What it does Default

probes.<check>.initialDelaySeconds

Seconds after the start before the first check.

readiness 15, liveness 60

probes.<check>.periodSeconds

Seconds between two checks.

readiness 10, liveness 30

probes.<check>.failureThreshold

How many failed checks in a row count as failed. Higher: more patient, slower to react.

readiness 30

probes.<check>.timeoutSeconds

Seconds a single check may take.

not set

An Agent’s checks use the same keys; its readiness check starts after 10 seconds.

The startup check’s keys are probes.startup.initialDelaySeconds, probes.startup.periodSeconds, probes.startup.failureThreshold and probes.startup.timeoutSeconds; the readiness check’s probes.readiness.initialDelaySeconds, probes.readiness.periodSeconds, probes.readiness.failureThreshold, probes.readiness.timeoutSeconds; the liveness check’s probes.liveness.initialDelaySeconds, probes.liveness.periodSeconds, probes.liveness.failureThreshold and probes.liveness.timeoutSeconds.

tools — the helper pods of an Agent’s tools

Agents only. An MCP Docker module runs its MCP server in a pod of its own (one per module and server of the Agent), a Python Script module each run in a short-lived pod (a Job). These settings size them; not set, the Agent’s built-in sizes apply. The limits of this installation apply to these pods too. Kubernetes: the Agent’s environment variables K8S_MCP_*, K8S_PYTHON_SCRIPT_* and CYROCK_MCPDOCKER_STREAMS.

Setting What it does Default

tools.mcpDocker.resources.cpuRequest, tools.pythonScript.resources.cpuRequest

Processor time reserved for each pod, for example "100m" (a tenth of a processor).

MCP Docker 100m, Python Script 100m

tools.mcpDocker.resources.cpuLimit, tools.pythonScript.resources.cpuLimit

The most processor time each pod may use, for example "500m". Lower: the tool is slowed down when it reaches it.

MCP Docker 500m, Python Script 1

tools.mcpDocker.resources.memoryRequest, tools.pythonScript.resources.memoryRequest

Memory reserved for each pod, for example "128Mi".

MCP Docker 128Mi, Python Script 256Mi

tools.mcpDocker.resources.memoryLimit, tools.pythonScript.resources.memoryLimit

The most memory each pod may use, for example "512Mi". If it needs more, the tool stops with an error. A request must not be above its limit.

MCP Docker 512Mi, Python Script 256Mi

tools.mcpDocker.streams

How many chats one MCP Docker pod serves at the same time, each with its own copy of the MCP server. Higher: more chats use the tool at once, but the pod needs more memory. Lower: chats wait for the tool.

4