k8s-deployments/surveybot/surveybot.yaml
Aaron Riedel ee1b1376c4
All checks were successful
continuous-integration/drone/push Build is passing
add surveybot
2024-07-12 14:45:18 +02:00

37 lines
992 B
YAML

apiVersion: v1
kind: Namespace
metadata:
name: surveybot
---
apiVersion: batch/v1
kind: CronJob
metadata:
name: surveybot
namespace: surveybot
spec:
schedule: "00 16 * * 5"
successfulJobsHistoryLimit: 1
failedJobsHistoryLimit: 3
jobTemplate:
spec:
ttlSecondsAfterFinished: 240
template:
spec:
containers:
- name: surveybot
image: git.ar21.de/secondhemd/shbot:latest
env:
- name: SURVEY_CHANNEL
value: "1121451742983368744"
- name: MENTION_ID
value: "1121451741704093726"
- name: GUILD_ID
value: "261575556708040705"
- name: TOKEN
valueFrom:
secretKeyRef:
name: surveybot-token
key: TOKEN
command: ["python", "survey.py"]
imagePullPolicy: Always
restartPolicy: Never