Notifications
Clear all

Which of the following commands would get the logs for that container?

1 Posts
1 Users
0 Likes
259 Views
(@woodliffrueben)
Posts: 735
Noble Member
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

Show Answer Hide Answer

Suggested Answer: B

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

Latest The Linux Foundation KCNA Dumps Valid Version

Latest And Valid Q&A | Instant Download | Once Fail, Full Refund
Share: