Normal Scheduled <unknown> default-scheduler Successfully assig . . .

Normal Scheduled default-scheduler Successfully assigned dvl1987/time-check to node01
Warning Failed 2m10s (x4 over 2m57s) kubelet, node01 Error: failed to start container “time-check”: Error response from daemon: OCI runtime create failed: container_linux.go:345: starting container process caused “exec: “while true; do date; sleep $TIME_FREQ;done > /opt/time/time-check.log”: stat while true; do date; sleep $TIME_FREQ;done > /opt/time/time-check.log: no such file or directory”: unknown

Muhammad Ehtisham Mubarik:
command: ["/bin/sh", “-c”, “while true; do date; sleep $TIME_FREQ;done > /opt/time/time-check.log”]

provide the execution path if you want to run a shell script, it’ll resolve your error.