agent-factory: generate agent auto-parse-email-content-and-extrac
This commit is contained in:
81
k8s/deployment.yaml
Normal file
81
k8s/deployment.yaml
Normal file
@@ -0,0 +1,81 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: auto-parse-email-content-and-extrac
|
||||
namespace: agents
|
||||
labels:
|
||||
app: auto-parse-email-content-and-extrac
|
||||
component: agent
|
||||
generated-by: agent-factory
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app: auto-parse-email-content-and-extrac
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: auto-parse-email-content-and-extrac
|
||||
azure.workload.identity/use: "true"
|
||||
annotations:
|
||||
instrumentation.opentelemetry.io/inject-python: "monitoring/otel-instrumentation"
|
||||
spec:
|
||||
serviceAccountName: agents-sa
|
||||
containers:
|
||||
- name: auto-parse-email-content-and-extrac
|
||||
image: bstagecjotdevacr.azurecr.io/auto-parse-email-content-and-extrac:latest
|
||||
imagePullPolicy: Always
|
||||
ports:
|
||||
- name: http
|
||||
containerPort: 8080
|
||||
protocol: TCP
|
||||
envFrom:
|
||||
- configMapRef:
|
||||
name: auto-parse-email-content-and-extrac-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-parse-email-content-and-extrac"
|
||||
- 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
|
||||
Reference in New Issue
Block a user