From 6d5aa8d4415bb9fc7c83a2796f4367954ccfdd98 Mon Sep 17 00:00:00 2001 From: "Waylon S. Walker" Date: Tue, 13 Feb 2024 19:49:50 -0600 Subject: [PATCH] weather nohelm --- active/weather_report.yaml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 active/weather_report.yaml diff --git a/active/weather_report.yaml b/active/weather_report.yaml new file mode 100644 index 0000000..74dae80 --- /dev/null +++ b/active/weather_report.yaml @@ -0,0 +1,27 @@ +apiVersion: batch/v1 +kind: CronJob +metadata: + name: weather-cronjob +spec: + schedule: "*/1 * * * *" + jobTemplate: + spec: + template: + metadata: + labels: + app: weather-job + spec: + containers: + - name: weather-container + image: busybox + command: ["sh", "-c", "curl 'wttr.in/peoria,il?format=3' >> /logs/weather.log"] + volumeMounts: + - name: logs-volume + mountPath: /logs + subPath: logs + restartPolicy: OnFailure + volumes: + - name: logs-volume + persistentVolumeClaim: + claimName: data + subPath: logs