feat(bot): ✨ Add "Delete My Activity Data" button to p.me.
This commit is contained in:
+34
-13
@@ -1,17 +1,38 @@
|
||||
apiVersion: batch/v1
|
||||
kind: CronJob
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: tasks
|
||||
spec:
|
||||
schedule: "* * * * *"
|
||||
jobTemplate:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app: tasks
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: tasks
|
||||
spec:
|
||||
template:
|
||||
spec:
|
||||
containers:
|
||||
- name: tasks
|
||||
image: git.nyeki.dev/payphone/payphone-tasks:latest
|
||||
command: ["uv", "run", "--no-dev", "tasks.py", "flush"]
|
||||
restartPolicy: OnFailure
|
||||
imagePullSecrets:
|
||||
- name: regcred
|
||||
containers:
|
||||
- name: flush
|
||||
image: git.nyeki.dev/payphone/payphone-tasks:latest
|
||||
command: ["uv", "run", "--no-dev", "tasks.py", "flush"]
|
||||
resources:
|
||||
requests:
|
||||
memory: "250Mib"
|
||||
cpu: "1"
|
||||
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: "250Mib"
|
||||
cpu: "1"
|
||||
limits:
|
||||
memory: "1Gi"
|
||||
cpu: "1"
|
||||
restartPolicy: OnFailure
|
||||
imagePullSecrets:
|
||||
- name: regcred
|
||||
|
||||
Reference in New Issue
Block a user