Add Temporal worker container to agents-api deployment
This commit is contained in:
parent
345f1651a6
commit
5829c087ea
|
|
@ -77,6 +77,23 @@ spec:
|
|||
volumeMounts:
|
||||
- name: app-volume
|
||||
mountPath: /app
|
||||
- name: worker
|
||||
image: python:3.11-slim
|
||||
workingDir: /app
|
||||
command: ["sh", "-c", "pip install -r requirements.txt && python -m src.worker"]
|
||||
env:
|
||||
- name: PYTHONUNBUFFERED
|
||||
value: "1"
|
||||
- name: PYTHONPATH
|
||||
value: "/app"
|
||||
- name: GOOGLE_API_KEY
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: agents-api-secrets
|
||||
key: GOOGLE_API_KEY
|
||||
volumeMounts:
|
||||
- name: app-volume
|
||||
mountPath: /app
|
||||
volumes:
|
||||
- name: app-volume
|
||||
emptyDir: {}
|
||||
|
|
|
|||
Loading…
Reference in New Issue