feat: add Ollama backend and HTTPRoute configurations to agentgateway-proxy
This commit is contained in:
@@ -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
|
||||||
@@ -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
|
||||||
Reference in New Issue
Block a user