Files
poimen-workflows/k8s/worker-deployment.yaml
T
Story Crater Bot f062f087c1
ci / test (push) Successful in 45s
fix(build): require go 1.22 instead of non-existent go 1.25.4
golang:1.23-alpine doesn't exist yet. Revert to golang:1.22-alpine
and update go.mod to require go 1.22, which matches the available image.
2026-08-22 06:02:03 -07:00

59 lines
1.4 KiB
YAML

apiVersion: apps/v1
kind: Deployment
metadata:
name: poimen-worker
namespace: poimen
spec:
replicas: 1
selector:
matchLabels:
app: poimen-worker
template:
metadata:
labels:
app: poimen-worker
spec:
containers:
- name: worker
image: golang:1.22-alpine
workingDir: /app
command: ["/bin/sh", "-c"]
args:
- |
apk add --no-cache git
git clone https://forgejo.riotpiao.com/rock/poimen-workflows.git /app
cd /app
go mod download
go run ./cmd/worker
env:
- name: TEMPORAL_NAMESPACE
valueFrom:
configMapKeyRef:
name: poimen-config
key: TEMPORAL_NAMESPACE
- name: TEMPORAL_HOSTPORT
valueFrom:
configMapKeyRef:
name: poimen-config
key: TEMPORAL_HOSTPORT
- name: ANTHROPIC_API_KEY
valueFrom:
secretKeyRef:
name: poimen-secrets
key: ANTHROPIC_API_KEY
resources:
requests:
memory: "512Mi"
cpu: "500m"
limits:
memory: "2Gi"
cpu: "2000m"
livenessProbe:
exec:
command:
- /bin/sh
- -c
- ps aux | grep -q "go run ./cmd/worker" && echo ok || exit 1
initialDelaySeconds: 30
periodSeconds: 10