apiVersion: v1
kind: Pod
metadata:
  name: time-check
  namespace: datacenter
spec:
  volumes:
  - name: log-volume
    emptyDir: {}
  containers:
  - name: time-check
    image: busybox:latest
    resources: {}
    envFrom:
      - configMapRef:
          name: time-config
    command: ["/bin/sh"] 
    args: ["-c","while true; do date; sleep $TIME_FREQ;done >> /opt/dba/time/time-check.log"]
    volumeMounts:
    - mountPath: /opt/dba/time
      name: log-volume

