See the output of it at Example A-7. This command is useful when trying to get the status of the pod. It is frequently used when  troubleshooting a pod issue as described in Chapter 8, “Troubleshooting” on page 273. The  kubectl logs  command shows the logs of a resource or a pod. This command is useful  when troubleshooting an application and when you need more information about it. See Example A-8 to get the logs from a container. Example A-7 The kubectl get pods command Example A-8 The kubectl logs command [root@icp-312-node-1 cluster]# kubectl get pods --all-namespaces NAMESPACE NAME READY STATUS RESTARTS AGE cert-manager ibm-cert-manager-cert-manager-7c77d68c7f-sp64b 1/1 Running 0 13d development test-ibm-nginx-dev-nginx-8677c69574-bqk8w 1/1 Running 0 12d kube-system audit-logging-fluentd-ds-4xkjp 1/1 Running 0 13d kube-system audit-logging-fluentd-ds-bssb8 1/1 Running 0 13d kube-system audit-logging-fluentd-ds-h6vch 1/1 Running 0 13d kube-system audit-logging-fluentd-ds-j2px9 1/1 Running 0 13d kube-system audit-logging-fluentd-ds-jtfv4 1/1 Running 0 13d kubectl logs web-terminal-597c796cc-r5czh -n kube-system App listening on https://0.0.0.0:443 Created terminal with PID: 184 for user: admin Connected to terminal 184 admin login complete with exit code 0: Targeted account mycluster Account (id-mycluster-account) Select a namespace: 1. cert-manager 2. default 3. development 4. finance 5. ibmcom 6. istio-system 7. kube-public 8. kube-system 9. marketing 10. platform 11. services Enter a number> 1 Targeted namespace cert-manager kubectl logs  Appendix A. Command line tools  357