I’ve been practicing for the exam in your terminal. I don’t know how to write the reason to desired path. Please guide me through the step by step procedure to write the reason to the path /opt/course/18/reason.txt .
You can use
Output redirection (>) method for above case. Like this
kubectl logs nginx > /opt/course/18/reason.txt
It’s OK for logs… But in case of writing a reason into a path in text format… What is the procedure??
You can use this:
echo "WRITE_THE_REASON_HERE" > /opt/course/18/reason.txt