diff --git a/zap2xml/cron.yaml b/zap2xml/cron.yaml index fd442b9..9db7638 100644 --- a/zap2xml/cron.yaml +++ b/zap2xml/cron.yaml @@ -41,3 +41,47 @@ spec: emptyDir: sizeLimit: 1Gi medium: Memory +--- +apiVersion: batch/v1 +kind: CronJob +metadata: + name: zap2xml-ota-02191 +spec: + schedule: "30 */12 * * *" + jobTemplate: + spec: + template: + spec: + containers: + - name: zap2xml + image: git.dubyatp.xyz/williamp/kube-zap2xml:c075fec + envFrom: + - secretRef: + name: zap2xml-bucket + env: + - name: LINEUP_ID + value: USA-OTA02191 + - name: POSTAL_CODE + value: "02191" + - name: TIMESPAN + value: "120" + - name: OUTPUT_FILE + value: /tmp/xmltv.xml + - name: PUBLIC_FILENAME + value: xmltv-ota-02191.xml + - name: S3_URL + value: s3://zap2xml-c134c9a7-a7a0-4113-997e-78e72ec3f576 + volumeMounts: + - name: s3-config + mountPath: /root + - name: temp + mountPath: /tmp + restartPolicy: Never + volumes: + - name: s3-config + configMap: + name: zap2xml-s3config + - name: temp + emptyDir: + sizeLimit: 1Gi + medium: Memory \ No newline at end of file