Solutions to practice test - multi-container pods
Identify the number of containers running in the ‘red’ pod.
Identify the name of the containers running in the ‘blue’ pod.
Answer file is located at /var/answers/answer-yellow.yaml
We have deployed an application logging stack in the elastic-stack namespace. Inspect it.
Inspect the Kibana UI using the link above your terminal. There shouldn’t be any logs for now.
Run kubectl describe pod -n elastic-stack
Run the command ‘kubectl -n elastic-stack exec -it app cat /log/app.log’
Answer file is located at /var/answers/answer-app.yaml
Inspect the Kibana UI. You should now see logs appearing in the ‘Discover’ section. You might have to wait for a couple of minutes for the logs to populate. You might have to create an index pattern to list the logs. If not sure check this video: https://bit.ly/2EXYdHf