Notifications
Clear all
Topic starter
Have a pod 'hello' and a container in that pod 'green'.
Which of the following commands would get the logs for that container?
- A . alias k='kubectl'
k logs -p hello -c green
B. alias k='kubectl'
k logs hello -c green
C. alias k='kubectl'
k get logs -p hello -c green
D. alias k='kubectl'
k logs -p hello green
Suggested Answer: B
Explanation:
https://kubernetes.io/docs/reference/generated/kubectl/kubectl-commands#logs
Explanation:
https://kubernetes.io/docs/reference/generated/kubectl/kubectl-commands#logs
Graphical user interface, text, application, email
Description automatically generated
Posted : 07/02/2023 4:57 am