From 28f1cf4b91ba55562d63951e45f107dd8457ef8d Mon Sep 17 00:00:00 2001 From: Marco Franssen Date: Wed, 20 May 2026 20:55:15 +0200 Subject: [PATCH] helm: Allow configuring agent memory Signed-off-by: Marco Franssen --- .../agents/argo-rollouts/templates/agent.yaml | 7 +++ helm/agents/argo-rollouts/values.yaml | 7 ++- helm/agents/cilium-debug/templates/agent.yaml | 7 +++ helm/agents/cilium-debug/values.yaml | 6 +++ .../cilium-manager/templates/agent.yaml | 7 +++ helm/agents/cilium-manager/values.yaml | 6 +++ .../agents/cilium-policy/templates/agent.yaml | 7 +++ helm/agents/cilium-policy/values.yaml | 7 ++- helm/agents/helm/templates/agent.yaml | 7 +++ helm/agents/helm/values.yaml | 7 ++- helm/agents/istio/templates/agent.yaml | 7 +++ helm/agents/istio/values.yaml | 6 +++ helm/agents/k8s/templates/agent.yaml | 7 +++ helm/agents/k8s/values.yaml | 6 +++ helm/agents/kgateway/templates/agent.yaml | 7 +++ helm/agents/kgateway/values.yaml | 6 +++ .../agents/observability/templates/agent.yaml | 7 +++ helm/agents/observability/values.yaml | 6 +++ helm/agents/promql/templates/agent.yaml | 9 +++- helm/agents/promql/values.yaml | 6 +++ helm/kagent/values.yaml | 50 +++++++++++++++++++ 21 files changed, 181 insertions(+), 4 deletions(-) diff --git a/helm/agents/argo-rollouts/templates/agent.yaml b/helm/agents/argo-rollouts/templates/agent.yaml index 466e82475..dbae23c12 100644 --- a/helm/agents/argo-rollouts/templates/agent.yaml +++ b/helm/agents/argo-rollouts/templates/agent.yaml @@ -120,6 +120,13 @@ spec: name: kagent-builtin-prompts alias: builtin modelConfig: {{ .Values.modelConfigRef | default (printf "%s" (include "kagent.defaultModelConfigName" .)) }} + {{- with .Values.memory }} + {{- if .enabled }} + memory: + modelConfig: {{ required .modelConfigRef "A compatible modelConfig must be provided when memory is enabled" }} + ttlDays: {{ .ttlDays | default 15 }} + {{- end }} + {{- end }} tools: - type: McpServer mcpServer: diff --git a/helm/agents/argo-rollouts/values.yaml b/helm/agents/argo-rollouts/values.yaml index b0f51d995..3638eb86c 100644 --- a/helm/agents/argo-rollouts/values.yaml +++ b/helm/agents/argo-rollouts/values.yaml @@ -1,6 +1,12 @@ # -- Optional reference to a ModelConfig resource for this agent. If not specified, the default model config will be used. modelConfigRef: "" +memory: + enabled: false + ttlDays: 15 + # Optional reference to a ModelConfig resource for the agent's memory. + modelConfigRef: "" + # -- Optional runtime specification for the agent. If not specified, it will default to "python". Supported runtimes include "python" and "go". runtime: "" @@ -14,5 +20,4 @@ resources: cpu: 1000m memory: 1Gi - compaction: {} diff --git a/helm/agents/cilium-debug/templates/agent.yaml b/helm/agents/cilium-debug/templates/agent.yaml index 4826e15b8..43b40294b 100644 --- a/helm/agents/cilium-debug/templates/agent.yaml +++ b/helm/agents/cilium-debug/templates/agent.yaml @@ -11,6 +11,13 @@ spec: declarative: runtime: {{ .Values.runtime | default "python" }} modelConfig: {{ .Values.modelConfigRef | default (printf "%s" (include "kagent.defaultModelConfigName" .)) }} + {{- with .Values.memory }} + {{- if .enabled }} + memory: + modelConfig: {{ required "A compatible modelConfig must be provided when memory is enabled" .modelConfigRef }} + ttlDays: {{ .ttlDays | default 15 }} + {{- end }} + {{- end }} systemMessage: | You are the Cilium Debug Agent, a specialized assistant for debugging, troubleshooting, and advanced diagnostics of Cilium installations in Kubernetes clusters. diff --git a/helm/agents/cilium-debug/values.yaml b/helm/agents/cilium-debug/values.yaml index 1cfd5eeaf..3638eb86c 100644 --- a/helm/agents/cilium-debug/values.yaml +++ b/helm/agents/cilium-debug/values.yaml @@ -1,6 +1,12 @@ # -- Optional reference to a ModelConfig resource for this agent. If not specified, the default model config will be used. modelConfigRef: "" +memory: + enabled: false + ttlDays: 15 + # Optional reference to a ModelConfig resource for the agent's memory. + modelConfigRef: "" + # -- Optional runtime specification for the agent. If not specified, it will default to "python". Supported runtimes include "python" and "go". runtime: "" diff --git a/helm/agents/cilium-manager/templates/agent.yaml b/helm/agents/cilium-manager/templates/agent.yaml index 9013aff50..2896c4e2e 100644 --- a/helm/agents/cilium-manager/templates/agent.yaml +++ b/helm/agents/cilium-manager/templates/agent.yaml @@ -11,6 +11,13 @@ spec: declarative: runtime: {{ .Values.runtime | default "python" }} modelConfig: {{ .Values.modelConfigRef | default (printf "%s" (include "kagent.defaultModelConfigName" .)) }} + {{- with .Values.memory }} + {{- if .enabled }} + memory: + modelConfig: {{ required "A compatible modelConfig must be provided when memory is enabled" .modelConfigRef }} + ttlDays: {{ .ttlDays | default 15 }} + {{- end }} + {{- end }} systemMessage: |- You are a Cilium Expert AI Agent with comprehensive knowledge of Cilium CNI, eBPF, and Kubernetes networking. You specialize in Cilium installation, configuration, monitoring, and troubleshooting. Your expertise covers diff --git a/helm/agents/cilium-manager/values.yaml b/helm/agents/cilium-manager/values.yaml index 1cfd5eeaf..3638eb86c 100644 --- a/helm/agents/cilium-manager/values.yaml +++ b/helm/agents/cilium-manager/values.yaml @@ -1,6 +1,12 @@ # -- Optional reference to a ModelConfig resource for this agent. If not specified, the default model config will be used. modelConfigRef: "" +memory: + enabled: false + ttlDays: 15 + # Optional reference to a ModelConfig resource for the agent's memory. + modelConfigRef: "" + # -- Optional runtime specification for the agent. If not specified, it will default to "python". Supported runtimes include "python" and "go". runtime: "" diff --git a/helm/agents/cilium-policy/templates/agent.yaml b/helm/agents/cilium-policy/templates/agent.yaml index 5c9d02914..add4428be 100644 --- a/helm/agents/cilium-policy/templates/agent.yaml +++ b/helm/agents/cilium-policy/templates/agent.yaml @@ -11,6 +11,13 @@ spec: declarative: runtime: {{ .Values.runtime | default "python" }} modelConfig: {{ .Values.modelConfigRef | default (printf "%s" (include "kagent.defaultModelConfigName" .)) }} + {{- with .Values.memory }} + {{- if .enabled }} + memory: + modelConfig: {{ required "A compatible modelConfig must be provided when memory is enabled" .modelConfigRef }} + ttlDays: {{ .ttlDays | default 15 }} + {{- end }} + {{- end }} systemMessage: |- You are a CiliumNetworkPolicy and CiliumClusterwideNetworkPolicy agent that knows how to create valid YAML configurations based on user request. diff --git a/helm/agents/cilium-policy/values.yaml b/helm/agents/cilium-policy/values.yaml index b0f51d995..3638eb86c 100644 --- a/helm/agents/cilium-policy/values.yaml +++ b/helm/agents/cilium-policy/values.yaml @@ -1,6 +1,12 @@ # -- Optional reference to a ModelConfig resource for this agent. If not specified, the default model config will be used. modelConfigRef: "" +memory: + enabled: false + ttlDays: 15 + # Optional reference to a ModelConfig resource for the agent's memory. + modelConfigRef: "" + # -- Optional runtime specification for the agent. If not specified, it will default to "python". Supported runtimes include "python" and "go". runtime: "" @@ -14,5 +20,4 @@ resources: cpu: 1000m memory: 1Gi - compaction: {} diff --git a/helm/agents/helm/templates/agent.yaml b/helm/agents/helm/templates/agent.yaml index 2b5dab71e..e7cc0b599 100644 --- a/helm/agents/helm/templates/agent.yaml +++ b/helm/agents/helm/templates/agent.yaml @@ -102,6 +102,13 @@ spec: name: kagent-builtin-prompts alias: builtin modelConfig: {{ .Values.modelConfigRef | default (printf "%s" (include "kagent.defaultModelConfigName" .)) }} + {{- with .Values.memory }} + {{- if .enabled }} + memory: + modelConfig: {{ required "A compatible modelConfig must be provided when memory is enabled" .modelConfigRef }} + ttlDays: {{ .ttlDays | default 15 }} + {{- end }} + {{- end }} tools: - type: McpServer mcpServer: diff --git a/helm/agents/helm/values.yaml b/helm/agents/helm/values.yaml index b0f51d995..3638eb86c 100644 --- a/helm/agents/helm/values.yaml +++ b/helm/agents/helm/values.yaml @@ -1,6 +1,12 @@ # -- Optional reference to a ModelConfig resource for this agent. If not specified, the default model config will be used. modelConfigRef: "" +memory: + enabled: false + ttlDays: 15 + # Optional reference to a ModelConfig resource for the agent's memory. + modelConfigRef: "" + # -- Optional runtime specification for the agent. If not specified, it will default to "python". Supported runtimes include "python" and "go". runtime: "" @@ -14,5 +20,4 @@ resources: cpu: 1000m memory: 1Gi - compaction: {} diff --git a/helm/agents/istio/templates/agent.yaml b/helm/agents/istio/templates/agent.yaml index e6311e8e8..c6459bf55 100644 --- a/helm/agents/istio/templates/agent.yaml +++ b/helm/agents/istio/templates/agent.yaml @@ -124,6 +124,13 @@ spec: name: kagent-builtin-prompts alias: builtin modelConfig: {{ .Values.modelConfigRef | default (printf "%s" (include "kagent.defaultModelConfigName" .)) }} + {{- with .Values.memory }} + {{- if .enabled }} + memory: + modelConfig: {{ required "A compatible modelConfig must be provided when memory is enabled" .modelConfigRef }} + ttlDays: {{ .ttlDays | default 15 }} + {{- end }} + {{- end }} tools: - type: McpServer mcpServer: diff --git a/helm/agents/istio/values.yaml b/helm/agents/istio/values.yaml index 1cfd5eeaf..3638eb86c 100644 --- a/helm/agents/istio/values.yaml +++ b/helm/agents/istio/values.yaml @@ -1,6 +1,12 @@ # -- Optional reference to a ModelConfig resource for this agent. If not specified, the default model config will be used. modelConfigRef: "" +memory: + enabled: false + ttlDays: 15 + # Optional reference to a ModelConfig resource for the agent's memory. + modelConfigRef: "" + # -- Optional runtime specification for the agent. If not specified, it will default to "python". Supported runtimes include "python" and "go". runtime: "" diff --git a/helm/agents/k8s/templates/agent.yaml b/helm/agents/k8s/templates/agent.yaml index fc7660e70..975793aa1 100644 --- a/helm/agents/k8s/templates/agent.yaml +++ b/helm/agents/k8s/templates/agent.yaml @@ -88,6 +88,13 @@ spec: name: kagent-builtin-prompts alias: builtin modelConfig: {{ .Values.modelConfigRef | default (printf "%s" (include "kagent.defaultModelConfigName" .)) }} + {{- with .Values.memory }} + {{- if .enabled }} + memory: + modelConfig: {{ required "A compatible modelConfig must be provided when memory is enabled" .modelConfigRef }} + ttlDays: {{ .ttlDays | default 15 }} + {{- end }} + {{- end }} tools: - type: McpServer mcpServer: diff --git a/helm/agents/k8s/values.yaml b/helm/agents/k8s/values.yaml index 1cfd5eeaf..3638eb86c 100644 --- a/helm/agents/k8s/values.yaml +++ b/helm/agents/k8s/values.yaml @@ -1,6 +1,12 @@ # -- Optional reference to a ModelConfig resource for this agent. If not specified, the default model config will be used. modelConfigRef: "" +memory: + enabled: false + ttlDays: 15 + # Optional reference to a ModelConfig resource for the agent's memory. + modelConfigRef: "" + # -- Optional runtime specification for the agent. If not specified, it will default to "python". Supported runtimes include "python" and "go". runtime: "" diff --git a/helm/agents/kgateway/templates/agent.yaml b/helm/agents/kgateway/templates/agent.yaml index c10346853..5fa9041a6 100644 --- a/helm/agents/kgateway/templates/agent.yaml +++ b/helm/agents/kgateway/templates/agent.yaml @@ -210,6 +210,13 @@ spec: name: kagent-builtin-prompts alias: builtin modelConfig: {{ .Values.modelConfigRef | default (printf "%s" (include "kagent.defaultModelConfigName" .)) }} + {{- with .Values.memory }} + {{- if .enabled }} + memory: + modelConfig: {{ required "A compatible modelConfig must be provided when memory is enabled" .modelConfigRef }} + ttlDays: {{ .ttlDays | default 15 }} + {{- end }} + {{- end }} tools: - type: McpServer mcpServer: diff --git a/helm/agents/kgateway/values.yaml b/helm/agents/kgateway/values.yaml index 1cfd5eeaf..3638eb86c 100644 --- a/helm/agents/kgateway/values.yaml +++ b/helm/agents/kgateway/values.yaml @@ -1,6 +1,12 @@ # -- Optional reference to a ModelConfig resource for this agent. If not specified, the default model config will be used. modelConfigRef: "" +memory: + enabled: false + ttlDays: 15 + # Optional reference to a ModelConfig resource for the agent's memory. + modelConfigRef: "" + # -- Optional runtime specification for the agent. If not specified, it will default to "python". Supported runtimes include "python" and "go". runtime: "" diff --git a/helm/agents/observability/templates/agent.yaml b/helm/agents/observability/templates/agent.yaml index 8d7a05a10..8db809d6c 100644 --- a/helm/agents/observability/templates/agent.yaml +++ b/helm/agents/observability/templates/agent.yaml @@ -55,6 +55,13 @@ spec: name: kagent-builtin-prompts alias: builtin modelConfig: {{ .Values.modelConfigRef | default (printf "%s" (include "kagent.defaultModelConfigName" .)) }} + {{- with .Values.memory }} + {{- if .enabled }} + memory: + modelConfig: {{ required "A compatible modelConfig must be provided when memory is enabled" .modelConfigRef }} + ttlDays: {{ .ttlDays | default 15 }} + {{- end }} + {{- end }} tools: - type: McpServer mcpServer: diff --git a/helm/agents/observability/values.yaml b/helm/agents/observability/values.yaml index 1cfd5eeaf..3638eb86c 100644 --- a/helm/agents/observability/values.yaml +++ b/helm/agents/observability/values.yaml @@ -1,6 +1,12 @@ # -- Optional reference to a ModelConfig resource for this agent. If not specified, the default model config will be used. modelConfigRef: "" +memory: + enabled: false + ttlDays: 15 + # Optional reference to a ModelConfig resource for the agent's memory. + modelConfigRef: "" + # -- Optional runtime specification for the agent. If not specified, it will default to "python". Supported runtimes include "python" and "go". runtime: "" diff --git a/helm/agents/promql/templates/agent.yaml b/helm/agents/promql/templates/agent.yaml index 17bd93fa9..ffcb08526 100644 --- a/helm/agents/promql/templates/agent.yaml +++ b/helm/agents/promql/templates/agent.yaml @@ -11,6 +11,13 @@ spec: declarative: runtime: {{ .Values.runtime | default "python" }} modelConfig: {{ .Values.modelConfigRef | default (printf "%s" (include "kagent.defaultModelConfigName" .)) }} + {{- with .Values.memory }} + {{- if .enabled }} + memory: + modelConfig: {{ required "A compatible modelConfig must be provided when memory is enabled" .modelConfigRef }} + ttlDays: {{ .ttlDays | default 15 }} + {{- end }} + {{- end }} systemMessage: | # PromQL Query Generator @@ -219,4 +226,4 @@ spec: {{- end }} resources: {{- toYaml .Values.resources | nindent 8 }} - \ No newline at end of file + diff --git a/helm/agents/promql/values.yaml b/helm/agents/promql/values.yaml index 1cfd5eeaf..3638eb86c 100644 --- a/helm/agents/promql/values.yaml +++ b/helm/agents/promql/values.yaml @@ -1,6 +1,12 @@ # -- Optional reference to a ModelConfig resource for this agent. If not specified, the default model config will be used. modelConfigRef: "" +memory: + enabled: false + ttlDays: 15 + # Optional reference to a ModelConfig resource for the agent's memory. + modelConfigRef: "" + # -- Optional runtime specification for the agent. If not specified, it will default to "python". Supported runtimes include "python" and "go". runtime: "" diff --git a/helm/kagent/values.yaml b/helm/kagent/values.yaml index 4b5d62b5b..ddf818e19 100644 --- a/helm/kagent/values.yaml +++ b/helm/kagent/values.yaml @@ -495,6 +495,11 @@ proxy: k8s-agent: enabled: true + modelConfigRef: "" + memory: + enabled: false + modelConfigRef: "" + ttlDays: 15 resources: requests: cpu: 50m @@ -503,6 +508,11 @@ k8s-agent: memory: 256Mi kgateway-agent: enabled: true + modelConfigRef: "" + memory: + enabled: false + modelConfigRef: "" + ttlDays: 15 resources: requests: cpu: 50m @@ -511,6 +521,11 @@ kgateway-agent: memory: 256Mi istio-agent: enabled: true + modelConfigRef: "" + memory: + enabled: false + modelConfigRef: "" + ttlDays: 15 resources: requests: cpu: 50m @@ -519,6 +534,11 @@ istio-agent: memory: 256Mi promql-agent: enabled: true + modelConfigRef: "" + memory: + enabled: false + modelConfigRef: "" + ttlDays: 15 resources: requests: cpu: 50m @@ -527,6 +547,11 @@ promql-agent: memory: 256Mi observability-agent: enabled: true + modelConfigRef: "" + memory: + enabled: false + modelConfigRef: "" + ttlDays: 15 resources: requests: cpu: 50m @@ -535,6 +560,11 @@ observability-agent: memory: 256Mi argo-rollouts-agent: enabled: true + modelConfigRef: "" + memory: + enabled: false + modelConfigRef: "" + ttlDays: 15 resources: requests: cpu: 50m @@ -543,6 +573,11 @@ argo-rollouts-agent: memory: 256Mi helm-agent: enabled: true + modelConfigRef: "" + memory: + enabled: false + modelConfigRef: "" + ttlDays: 15 resources: requests: cpu: 50m @@ -551,6 +586,11 @@ helm-agent: memory: 256Mi cilium-policy-agent: enabled: true + modelConfigRef: "" + memory: + enabled: false + modelConfigRef: "" + ttlDays: 15 resources: requests: cpu: 50m @@ -559,6 +599,11 @@ cilium-policy-agent: memory: 256Mi cilium-manager-agent: enabled: true + modelConfigRef: "" + memory: + enabled: false + modelConfigRef: "" + ttlDays: 15 resources: requests: cpu: 50m @@ -567,6 +612,11 @@ cilium-manager-agent: memory: 256Mi cilium-debug-agent: enabled: true + modelConfigRef: "" + memory: + enabled: false + modelConfigRef: "" + ttlDays: 15 resources: requests: cpu: 50m