minecraft-servers/active/cronjob.yaml
2024-02-12 09:13:29 -06:00

22 lines
531 B
YAML

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: data
mountPath: /logs
subPath: logs
restartPolicy: Never
volumes:
- name: data
persistentVolumeClaim:
claimName: data