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