From 9437bb1ab3d1f44e8efa18a0bc7426cf04056a31 Mon Sep 17 00:00:00 2001 From: "Waylon S. Walker" Date: Mon, 12 Feb 2024 09:12:41 -0600 Subject: [PATCH] make a cron job --- active/cronjob.yaml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 active/cronjob.yaml diff --git a/active/cronjob.yaml b/active/cronjob.yaml new file mode 100644 index 0000000..6a69847 --- /dev/null +++ b/active/cronjob.yaml @@ -0,0 +1,22 @@ +apiVersion: batch/v1 +kind: Job +metadata: + name: timestamp-job +spec: + template: + metadata: + name: timestamp-job + spec: + containers: + - name: timestamp-container + image: busybox + command: ["sh", "-c", "while true; do date >> /logs/runs.log; sleep 60; done"] + volumeMounts: + - name: logs-volume + mountPath: /logs + subPath: logs + restartPolicy: Never + volumes: + - name: data + persistentVolumeClaim: + claimName: data