From 4ba0139451177f4ec4b7b919eb3219e20697972b Mon Sep 17 00:00:00 2001 From: Matthias Hinrichs Date: Tue, 5 May 2026 12:26:16 +0200 Subject: [PATCH] feat: add Ollama authentication secret and reference to agent gateway backend configuration --- .../templates/agentgateway-backend-ollama.yaml | 5 ++++- 04-agentgateway-proxy/templates/ollama-secret.yaml | 8 ++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 04-agentgateway-proxy/templates/ollama-secret.yaml diff --git a/04-agentgateway-proxy/templates/agentgateway-backend-ollama.yaml b/04-agentgateway-proxy/templates/agentgateway-backend-ollama.yaml index fc1dfa5..e6a65c1 100644 --- a/04-agentgateway-proxy/templates/agentgateway-backend-ollama.yaml +++ b/04-agentgateway-proxy/templates/agentgateway-backend-ollama.yaml @@ -16,4 +16,7 @@ spec: '*': Passthrough /v1/chat/completions: Completions /v1/embeddings: Passthrough - /v1/models: Passthrough \ No newline at end of file + /v1/models: Passthrough + auth: + secretRef: + name: ollama-secret \ No newline at end of file diff --git a/04-agentgateway-proxy/templates/ollama-secret.yaml b/04-agentgateway-proxy/templates/ollama-secret.yaml new file mode 100644 index 0000000..9feea2b --- /dev/null +++ b/04-agentgateway-proxy/templates/ollama-secret.yaml @@ -0,0 +1,8 @@ +apiVersion: v1 +data: + Authorization: b2xsYW1h +kind: Secret +metadata: + name: ollama-secret + namespace: agentgateway-system +type: Opaque \ No newline at end of file