agent-factory: generate agent auto-retrieve-files-from-a-reposito

This commit is contained in:
2026-04-13 20:00:51 +00:00
parent 56916f44cf
commit 940e2a5b80
19 changed files with 569 additions and 0 deletions

13
k8s/configmap.yaml Normal file
View File

@@ -0,0 +1,13 @@
apiVersion: v1
kind: ConfigMap
metadata:
name: auto-retrieve-files-from-a-reposito-config
namespace: agents
data:
REGISTRY_URL: "http://agent-gateway.agents.svc.cluster.local"
AGENT_SELF_URL: "http://auto-retrieve-files-from-a-reposito.agents.svc.cluster.local"
AZURE_OPENAI_DEPLOYMENT: "gpt-4o"
AZURE_OPENAI_API_VERSION: "2024-08-01-preview"
LOG_LEVEL: "INFO"
OTEL_SERVICE_NAME: "auto-retrieve-files-from-a-reposito"
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-retrieve-files-from-a-reposito
namespace: agents
labels:
app: auto-retrieve-files-from-a-reposito
component: agent
generated-by: agent-factory
spec:
replicas: 1
selector:
matchLabels:
app: auto-retrieve-files-from-a-reposito
template:
metadata:
labels:
app: auto-retrieve-files-from-a-reposito
azure.workload.identity/use: "true"
annotations:
instrumentation.opentelemetry.io/inject-python: "monitoring/otel-instrumentation"
spec:
serviceAccountName: agents-sa
containers:
- name: auto-retrieve-files-from-a-reposito
image: bstagecjotdevacr.azurecr.io/auto-retrieve-files-from-a-reposito:latest
imagePullPolicy: Always
ports:
- name: http
containerPort: 8080
protocol: TCP
envFrom:
- configMapRef:
name: auto-retrieve-files-from-a-reposito-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-retrieve-files-from-a-reposito"
- 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-retrieve-files-from-a-reposito
namespace: agents
labels:
app: auto-retrieve-files-from-a-reposito
spec:
type: ClusterIP
ports:
- port: 80
targetPort: http
protocol: TCP
name: http
selector:
app: auto-retrieve-files-from-a-reposito