Kubernetes Time check pod task failure

Could you please check and suggest me where did I went wrong.

Thank you. This is solved.

How you solve this?
I am stuck in this task.

@omydevops1 ,

The task ask for this,

The time-check container should run the command: while true; do date; sleep $TIME_FREQ;done and should write the result to the location /opt/sysops/time/time-check.log. Remember you will also need to add an environmental variable TIME_FREQ in the container, which should pick value from the config map TIME_FREQ key.

Your error is Output of time-check.log is incorrect.

Where is the reference to time-check.log in your manifest?

1 Like

These are the two manifest files created which solved the task. Hope it helps in comparison

Thank you

Hi @devrajnadar1008,

Thanks for sharing the manifest file to help out other community members. But I wouldn’t recommend sharing the manifest file. They have to figure it out how to solve the pod failure.

Regards,