diff --git a/04-agentgateway-proxy/templates/agentgateway-backend-ollama.yaml b/04-agentgateway-proxy/templates/agentgateway-backend-ollama.yaml new file mode 100644 index 0000000..fc1dfa5 --- /dev/null +++ b/04-agentgateway-proxy/templates/agentgateway-backend-ollama.yaml @@ -0,0 +1,19 @@ +apiVersion: agentgateway.dev/v1alpha1 +kind: AgentgatewayBackend +metadata: + name: ollama + namespace: agentgateway-system +spec: + ai: + provider: + openai: + model: gemma4:latest + host: 192.168.250.153 + port: 11434 + policies: + ai: + routes: + '*': Passthrough + /v1/chat/completions: Completions + /v1/embeddings: Passthrough + /v1/models: Passthrough \ No newline at end of file diff --git a/04-agentgateway-proxy/templates/route-ollama.yaml b/04-agentgateway-proxy/templates/route-ollama.yaml new file mode 100644 index 0000000..a9e958a --- /dev/null +++ b/04-agentgateway-proxy/templates/route-ollama.yaml @@ -0,0 +1,15 @@ +apiVersion: gateway.networking.k8s.io/v1 +kind: HTTPRoute +metadata: + name: ollama + namespace: agentgateway-system +spec: + parentRefs: + - name: agentgateway-proxy + namespace: agentgateway-system + rules: + - backendRefs: + - name: ollama + namespace: agentgateway-system + group: agentgateway.dev + kind: AgentgatewayBackend \ No newline at end of file