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