forked from rossoctl/operator
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathweather-agent-build-and-deploy.yaml
More file actions
84 lines (75 loc) · 2.14 KB
/
Copy pathweather-agent-build-and-deploy.yaml
File metadata and controls
84 lines (75 loc) · 2.14 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
apiVersion: agent.kagenti.dev/v1alpha1
kind: AgentBuild
metadata:
name: weather-agent-build
namespace: kagenti
spec:
mode: dev
source:
sourceRepository: "github.com/kagenti/agent-examples.git"
sourceRevision: "main"
sourceSubfolder: "a2a/weather_service"
sourceCredentials:
name: github-token-secret
pipeline:
namespace: kagenti-system
parameters:
- name: SOURCE_REPO_SECRET
value: github-token-secret
buildOutput:
image: "weather-service"
imageTag: "v0.0.1"
imageRegistry: "registry.cr-system.svc.cluster.local:5000"
imageRepoCredentials:
name: ghcr-secret
---
apiVersion: agent.kagenti.dev/v1alpha1
kind: Agent
metadata:
name: weather-agent
namespace: kagenti
labels:
app: weather-service
annotations:
description: "Weather data processing agent"
spec:
description: "Agent that processes weather data"
replicas: 1
# Use existing container image
imageSource:
buildRef:
name: weather-agent-build
# Complete pod template specification
podTemplateSpec:
spec:
containers:
- name: agent # use fixed name "agent" for the main container
image: <will be replaced with imageSource.image above>
# Environment variables
env:
- name: PORT
value: "8000"
- name: HOST
value: 0.0.0.0
- name: OTEL_EXPORTER_OTLP_ENDPOINT
value: http://otel-collector.kagenti-system.svc.cluster.local:8335
- name: KEYCLOAK_URL
value: http://keycloak.keycloak.svc.cluster.local:8080
- name: UV_CACHE_DIR
value: /app/.cache/uv
- name: LLM_API_BASE
value: http://host.docker.internal:11434/v1
- name: LLM_API_KEY
value: dummy
- name: LLM_MODEL
value: llama3.2:3b-instruct-fp16
- name: MCP_URL
value: http://weather-tool:8000/mcp
- name: GITHUB_SECRET_NAME
value: github-token-secret
- name: CLIENT_NAME
value: kagenti/weather-service
- name: CLIENT_ID
value: spiffe://localtest.me/sa/weather-service
- name: NAMESPACE
value: kagenti