apiVersion: v1
kind: Pod
metadata:
  name: time-check
  namespace: dvl1987
spec:
  volumes:
    - name: config-volume
      configMap:
        # Provide the name of the ConfigMap containing the files you want
        # to add to the container
        name: time-check
  containers:
    - name: test-container
      image: k8s.gcr.io/busybox
      command: [ "/bin/sh", "-c", "while true; do date; sleep $TIME_FREQ;done >> /opt/time/time-check.log " ]
      volumeMounts:
      - name: config-volume
        mountPath: /opt/time
