49 lines
1.3 KiB
YAML
49 lines
1.3 KiB
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: tasks
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app: tasks
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: tasks
|
|
spec:
|
|
containers:
|
|
- name: flush
|
|
image: git.nyeki.dev/payphone/payphone-tasks:latest
|
|
command: ["uv", "run", "--no-dev", "tasks.py", "flush"]
|
|
resources:
|
|
requests:
|
|
memory: "250Mi"
|
|
cpu: "100m"
|
|
limits:
|
|
memory: "1Gi"
|
|
cpu: "1"
|
|
- name: delete-accounts
|
|
image: git.nyeki.dev/payphone/payphone-tasks:latest
|
|
command: ["uv", "run", "--no-dev", "tasks.py", "delete-accounts"]
|
|
resources:
|
|
requests:
|
|
memory: "250Mi"
|
|
cpu: "100m"
|
|
limits:
|
|
memory: "1Gi"
|
|
cpu: "1"
|
|
- name: hangup-inactive-calls
|
|
image: git.nyeki.dev/payphone/payphone-tasks:latest
|
|
command: ["uv", "run", "--no-dev", "tasks.py", "hangup-inactive-calls"]
|
|
resources:
|
|
requests:
|
|
memory: "250Mi"
|
|
cpu: "100m"
|
|
limits:
|
|
memory: "1Gi"
|
|
cpu: "1"
|
|
restartPolicy: Always
|
|
imagePullSecrets:
|
|
- name: regcred
|