# Alle 10 Minuten: faellige Raten einziehen, abgelaufene Reservierungen # freigeben, E-Mails nachsenden. Ohne ihn funktioniert Ratenzahlung nicht. apiVersion: batch/v1 kind: CronJob metadata: name: artista-modelcamp-worker namespace: artista spec: schedule: "*/10 * * * *" concurrencyPolicy: Forbid jobTemplate: spec: backoffLimit: 1 activeDeadlineSeconds: 900 template: metadata: labels: db-client: "true" spec: restartPolicy: Never automountServiceAccountToken: false securityContext: runAsNonRoot: true runAsUser: 1001 seccompProfile: { type: RuntimeDefault } containers: - name: worker image: git.encry.de/nick.rosenloecher/artista-modelcamp-tools:latest imagePullPolicy: Always command: ["tsx", "scripts/worker.ts"] envFrom: - configMapRef: { name: artista-modelcamp-config } - secretRef: { name: artista-modelcamp-secrets } resources: requests: { cpu: "0", memory: "0" } limits: { memory: 512Mi } securityContext: allowPrivilegeEscalation: false capabilities: { drop: ["ALL"] }