From 25d7d47064a918f3db4a4508d1137c17cdf60c45 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 | 52 ++++++++++++++++++- 21 files changed, 182 insertions(+), 5 deletions(-) diff --git a/helm/agents/argo-rollouts/templates/agent.yaml b/helm/agents/argo-rollouts/templates/agent.yaml index 6ba1ab033..d354323b2 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 b2cbfc85e..d6cf196ab 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. If not specified, the default model config will be used. + modelConfigRef: "" + # -- Optional runtime specification for the agent. If not specified, it will default to "python". Supported runtimes include "python" and "go". runtime: "" @@ -13,4 +19,3 @@ resources: limits: cpu: 1000m memory: 1Gi - diff --git a/helm/agents/cilium-debug/templates/agent.yaml b/helm/agents/cilium-debug/templates/agent.yaml index 6e2890236..ac952a87c 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 317a231ed..d6cf196ab 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. If not specified, the default model config will be used. + 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 b770d2b4d..ddae4cb77 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 317a231ed..d6cf196ab 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. If not specified, the default model config will be used. + 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 648e248f2..ec3a44973 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 b2cbfc85e..d6cf196ab 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. If not specified, the default model config will be used. + modelConfigRef: "" + # -- Optional runtime specification for the agent. If not specified, it will default to "python". Supported runtimes include "python" and "go". runtime: "" @@ -13,4 +19,3 @@ resources: limits: cpu: 1000m memory: 1Gi - diff --git a/helm/agents/helm/templates/agent.yaml b/helm/agents/helm/templates/agent.yaml index 5f614eb99..9423c3d8e 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 b2cbfc85e..d6cf196ab 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. If not specified, the default model config will be used. + modelConfigRef: "" + # -- Optional runtime specification for the agent. If not specified, it will default to "python". Supported runtimes include "python" and "go". runtime: "" @@ -13,4 +19,3 @@ resources: limits: cpu: 1000m memory: 1Gi - diff --git a/helm/agents/istio/templates/agent.yaml b/helm/agents/istio/templates/agent.yaml index 347f14a78..b8b9d9f99 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 317a231ed..d6cf196ab 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. If not specified, the default model config will be used. + 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 775173b0f..d223d3bc3 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 317a231ed..d6cf196ab 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. If not specified, the default model config will be used. + 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 aecfc6470..caf82b37f 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 317a231ed..d6cf196ab 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. If not specified, the default model config will be used. + 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 fe0e47c9b..6973884e2 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 317a231ed..d6cf196ab 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. If not specified, the default model config will be used. + 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 fd5debc26..c186c1a44 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 @@ -215,4 +222,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 317a231ed..d6cf196ab 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. If not specified, the default model config will be used. + 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 00c2cd990..08b53167d 100644 --- a/helm/kagent/values.yaml +++ b/helm/kagent/values.yaml @@ -407,7 +407,7 @@ kagent-tools: tools: loglevel: "debug" metrics: - port: 8085 # Use a different port than the main service port (8084) to avoid duplicate port definitions + port: 8085 # Use a different port than the main service port (8084) to avoid duplicate port definitions # ============================================================================== # PROXY CONFIGURATION @@ -430,6 +430,11 @@ proxy: k8s-agent: enabled: true + modelConfigRef: "" + memory: + enabled: false + modelConfigRef: "" + ttlDays: 15 resources: requests: cpu: 50m @@ -438,6 +443,11 @@ k8s-agent: memory: 256Mi kgateway-agent: enabled: true + modelConfigRef: "" + memory: + enabled: false + modelConfigRef: "" + ttlDays: 15 resources: requests: cpu: 50m @@ -446,6 +456,11 @@ kgateway-agent: memory: 256Mi istio-agent: enabled: true + modelConfigRef: "" + memory: + enabled: false + modelConfigRef: "" + ttlDays: 15 resources: requests: cpu: 50m @@ -454,6 +469,11 @@ istio-agent: memory: 256Mi promql-agent: enabled: true + modelConfigRef: "" + memory: + enabled: false + modelConfigRef: "" + ttlDays: 15 resources: requests: cpu: 50m @@ -462,6 +482,11 @@ promql-agent: memory: 256Mi observability-agent: enabled: true + modelConfigRef: "" + memory: + enabled: false + modelConfigRef: "" + ttlDays: 15 resources: requests: cpu: 50m @@ -470,6 +495,11 @@ observability-agent: memory: 256Mi argo-rollouts-agent: enabled: true + modelConfigRef: "" + memory: + enabled: false + modelConfigRef: "" + ttlDays: 15 resources: requests: cpu: 50m @@ -478,6 +508,11 @@ argo-rollouts-agent: memory: 256Mi helm-agent: enabled: true + modelConfigRef: "" + memory: + enabled: false + modelConfigRef: "" + ttlDays: 15 resources: requests: cpu: 50m @@ -486,6 +521,11 @@ helm-agent: memory: 256Mi cilium-policy-agent: enabled: true + modelConfigRef: "" + memory: + enabled: false + modelConfigRef: "" + ttlDays: 15 resources: requests: cpu: 50m @@ -494,6 +534,11 @@ cilium-policy-agent: memory: 256Mi cilium-manager-agent: enabled: true + modelConfigRef: "" + memory: + enabled: false + modelConfigRef: "" + ttlDays: 15 resources: requests: cpu: 50m @@ -502,6 +547,11 @@ cilium-manager-agent: memory: 256Mi cilium-debug-agent: enabled: true + modelConfigRef: "" + memory: + enabled: false + modelConfigRef: "" + ttlDays: 15 resources: requests: cpu: 50m