Add container publishing and env-based runtime
This commit is contained in:
+9
-41
@@ -2,53 +2,21 @@ apiVersion: batch/v1
|
||||
kind: CronJob
|
||||
metadata:
|
||||
name: alma-assignments-reporter
|
||||
namespace: default
|
||||
namespace: email
|
||||
spec:
|
||||
timeZone: America/Los_Angeles
|
||||
schedule: "0 14 * * *"
|
||||
jobTemplate:
|
||||
spec:
|
||||
template:
|
||||
spec:
|
||||
imagePullSecrets:
|
||||
- name: alma-assignments-reporter-registry
|
||||
restartPolicy: Never
|
||||
containers:
|
||||
- name: reporter
|
||||
image: example.invalid/alma-assignments-reporter:latest
|
||||
env:
|
||||
- name: ALMA_ASSIGNMENTS_URL
|
||||
value: https://example.invalid/children/student-id/assignments
|
||||
- name: ALMA_SCHEDULE_URL
|
||||
value: https://example.invalid/children/student-id/schedule
|
||||
- name: ALMA_START_DATE
|
||||
value: "2026-01-20"
|
||||
- name: ALMA_UPCOMING_DAYS
|
||||
value: "14"
|
||||
- name: ALMA_CREDS_FILE
|
||||
value: /config/alma.creds
|
||||
- name: SMTP_HOST
|
||||
value: smtp.email.svc.cluster.local
|
||||
- name: SMTP_PORT
|
||||
value: "587"
|
||||
- name: SMTP_STARTTLS
|
||||
value: "false"
|
||||
- name: EMAIL_FROM
|
||||
value: alma-reporter@example.invalid
|
||||
- name: EMAIL_TO
|
||||
value: parent@example.invalid
|
||||
- name: SMTP_USERNAME
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: alma-assignments-reporter-smtp
|
||||
key: username
|
||||
- name: SMTP_PASSWORD
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: alma-assignments-reporter-smtp
|
||||
key: password
|
||||
volumeMounts:
|
||||
- name: alma-creds
|
||||
mountPath: /config
|
||||
readOnly: true
|
||||
volumes:
|
||||
- name: alma-creds
|
||||
secret:
|
||||
secretName: alma-assignments-reporter-alma
|
||||
image: example.invalid/alma-assignments-reporter:main
|
||||
imagePullPolicy: Always
|
||||
envFrom:
|
||||
- secretRef:
|
||||
name: alma-assignments-reporter
|
||||
|
||||
Reference in New Issue
Block a user