[Phase 1.2] Temporal SDK client, worker mgmt, k8s deployments #10
@@ -23,61 +23,7 @@ spec:
|
|||||||
imagePullSecrets:
|
imagePullSecrets:
|
||||||
- name: poimen-registry
|
- name: poimen-registry
|
||||||
containers:
|
containers:
|
||||||
# Workflows server (HTTP, health checks)
|
# Temporal activity worker (single role, no HTTP server)
|
||||||
- name: workflows-server
|
|
||||||
image: forgejo.riotpiao.com/rock/poimen-workflows:latest
|
|
||||||
imagePullPolicy: Always
|
|
||||||
command: ["/app/worker", "server"]
|
|
||||||
ports:
|
|
||||||
- containerPort: 8080
|
|
||||||
name: http
|
|
||||||
env:
|
|
||||||
- name: DATABASE_URL
|
|
||||||
valueFrom:
|
|
||||||
secretKeyRef:
|
|
||||||
name: poimen-db-credentials
|
|
||||||
key: workflows-url
|
|
||||||
- name: TEMPORAL_HOSTPORT
|
|
||||||
valueFrom:
|
|
||||||
configMapKeyRef:
|
|
||||||
name: poimen-config
|
|
||||||
key: temporal-hostport
|
|
||||||
- name: TEMPORAL_NAMESPACE
|
|
||||||
valueFrom:
|
|
||||||
configMapKeyRef:
|
|
||||||
name: poimen-config
|
|
||||||
key: temporal-namespace
|
|
||||||
- name: MEMORY_SERVICE_URL
|
|
||||||
valueFrom:
|
|
||||||
configMapKeyRef:
|
|
||||||
name: poimen-config
|
|
||||||
key: memory-service-url
|
|
||||||
- name: JWT_SECRET
|
|
||||||
valueFrom:
|
|
||||||
secretKeyRef:
|
|
||||||
name: poimen-secrets
|
|
||||||
key: jwt-secret
|
|
||||||
livenessProbe:
|
|
||||||
httpGet:
|
|
||||||
path: /health
|
|
||||||
port: 8080
|
|
||||||
initialDelaySeconds: 10
|
|
||||||
periodSeconds: 10
|
|
||||||
readinessProbe:
|
|
||||||
httpGet:
|
|
||||||
path: /ready
|
|
||||||
port: 8080
|
|
||||||
initialDelaySeconds: 5
|
|
||||||
periodSeconds: 5
|
|
||||||
resources:
|
|
||||||
requests:
|
|
||||||
memory: "256Mi"
|
|
||||||
cpu: "250m"
|
|
||||||
limits:
|
|
||||||
memory: "1Gi"
|
|
||||||
cpu: "1000m"
|
|
||||||
|
|
||||||
# Temporal worker (activity executor)
|
|
||||||
- name: workflows-worker
|
- name: workflows-worker
|
||||||
image: forgejo.riotpiao.com/rock/poimen-workflows:latest
|
image: forgejo.riotpiao.com/rock/poimen-workflows:latest
|
||||||
imagePullPolicy: Always
|
imagePullPolicy: Always
|
||||||
|
|||||||
Reference in New Issue
Block a user