agent-factory: generate agent auto-retrieveapplicationdefinitio

This commit is contained in:
2026-08-14 19:15:35 +00:00
parent 8514f53210
commit a5350960ac
19 changed files with 571 additions and 0 deletions

13
k8s/configmap.yaml Normal file
View File

@@ -0,0 +1,13 @@
apiVersion: v1
kind: ConfigMap
metadata:
name: auto-retrieveapplicationdefinitio-config
namespace: agents
data:
REGISTRY_URL: "http://agent-gateway.agents.svc.cluster.local"
AGENT_SELF_URL: "http://auto-retrieveapplicationdefinitio.agents.svc.cluster.local"
AZURE_OPENAI_DEPLOYMENT: "gpt-4o"
AZURE_OPENAI_API_VERSION: "2024-08-01-preview"
LOG_LEVEL: "INFO"
OTEL_SERVICE_NAME: "auto-retrieveapplicationdefinitio"
OTEL_EXPORTER_OTLP_ENDPOINT: "http://otel-collector.monitoring.svc.cluster.local:4318"

81
k8s/deployment.yaml Normal file
View File

@@ -0,0 +1,81 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: auto-retrieveapplicationdefinitio
namespace: agents
labels:
app: auto-retrieveapplicationdefinitio
component: agent
generated-by: agent-factory
spec:
replicas: 1
selector:
matchLabels:
app: auto-retrieveapplicationdefinitio
template:
metadata:
labels:
app: auto-retrieveapplicationdefinitio
azure.workload.identity/use: "true"
annotations:
instrumentation.opentelemetry.io/inject-python: "monitoring/otel-instrumentation"
spec:
serviceAccountName: agents-sa
containers:
- name: auto-retrieveapplicationdefinitio
image: bstagecjotdevacr.azurecr.io/auto-retrieveapplicationdefinitio:latest
imagePullPolicy: Always
ports:
- name: http
containerPort: 8080
protocol: TCP
envFrom:
- configMapRef:
name: auto-retrieveapplicationdefinitio-config
env:
- name: AZURE_OPENAI_ENDPOINT
valueFrom:
secretKeyRef:
name: agents-kv-sync
key: azure-openai-endpoint
- name: AZURE_OPENAI_API_KEY
valueFrom:
secretKeyRef:
name: agents-kv-sync
key: azure-openai-api-key
- name: OTEL_SERVICE_NAME
value: "auto-retrieveapplicationdefinitio"
- name: OTEL_RESOURCE_ATTRIBUTES
value: "service.namespace=agents,deployment.environment=production"
resources:
requests:
memory: "512Mi"
cpu: "250m"
limits:
memory: "1Gi"
cpu: "500m"
livenessProbe:
httpGet:
path: /health
port: http
initialDelaySeconds: 30
periodSeconds: 10
timeoutSeconds: 5
failureThreshold: 30
readinessProbe:
httpGet:
path: /health
port: http
initialDelaySeconds: 10
periodSeconds: 5
volumeMounts:
- name: secrets-store
mountPath: "/mnt/secrets-store"
readOnly: true
volumes:
- name: secrets-store
csi:
driver: secrets-store.csi.k8s.io
readOnly: true
volumeAttributes:
secretProviderClass: agents-kv-spc

16
k8s/service.yaml Normal file
View File

@@ -0,0 +1,16 @@
apiVersion: v1
kind: Service
metadata:
name: auto-retrieveapplicationdefinitio
namespace: agents
labels:
app: auto-retrieveapplicationdefinitio
spec:
type: ClusterIP
ports:
- port: 80
targetPort: http
protocol: TCP
name: http
selector:
app: auto-retrieveapplicationdefinitio