Can you please help me in understanding what is wrong n why this task was marked failed for me. The error mentioned is “mount path is incorrect under nautilus namespace” . Please find the screenshots of the pod describe showing the correct namespace and mount path i.e /opt/data/time. The output from the pod is also being correctly written with the 9 sec frequency taken from the configmap.
Though after a second reading of the question i did find a potential ambiguity in the way the log-volume is mentioned - whether it pertains to the configmap section under which it is mentioned or the path to capture the date/time output mentioned two paragraphs below. If that is the case, then teh question needs to be suitably corrected and the log_volume shifted to the correct paragraph.
Question: The Nautilus DevOps team want to create a time check pod in a particular Kubernetes namespace and record the logs. This might be initially used only for existing purposes, but later can be implemented in an existing cstrong textluster. Please find more details below about the task and perform it.
Create a pod called time-check in the nautilus namespace. This pod should run a container called time-check container should use the busybox image with latest tag only and remember to mention tag i.e busybox:latest.
Create a config map called time-config with the data TIME_FREQ=9 in the same namespace, and volume name should be log-volume.
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/data/time/time-check.log.
3.The path /opt/data/time on the pod should mount a volume that lasts the lifetime of this pod.
Note: The kubectl utility on jump_host has been configured to work with the kubernetes cluster.