Kubernetes Handbook
  • Introduction
  • Prerequisites
    • What is Containerization
    • What is Docker
    • Difference between Docker and VM
  • Features of Kubernetes
    • What is Kubernetes
    • Features of Kubernetes - 1
    • Features of Kubernetes - 2
    • Which Tool to Use for Orchestration
  • Architecture
    • Master Node
    • etcd and kubectl
    • Worker Nodes
  • Pods and Nodes
    • Nodes
    • Pods
  • Controllers
    • Benefits of Controllers
    • Kinds of Controllers
  • Minikube
    • What is Minikube
  • Installation and Running (Mac OS)
    • Installation
    • Running Hello World Application
  • Labels Namespaces and Selectors
    • Labels
    • Namespaces
    • Selectors
  • Health Checks Rollouts and Rollbacks
    • Health Checks
    • Rollouts and Rollbacks
  • Config Maps and Secrets
    • Config Maps
    • Secrets
  • Running Jobs
    • How to Run Jobs
  • Dashboard and Debugging
    • Kubernetes Dashboard
    • Debugging
Powered by GitBook
On this page
  • Pod Monitoring and Logging
  • Exec into the pod
  • Thanks for reading. Hope you're having a good day!

Was this helpful?

  1. Dashboard and Debugging

Debugging

Pod Monitoring and Logging

Describe deployments or pods for obtaining the subsequent events.

$ kubectl describe po/<pod-name>

Replace <pod-name> with the name of your pod.

Get the pod logs using the below command.

$ kubectl logs <pod-name>

Exec into the pod

$ kubectl exec -it <pod-name> /bin/bash
$ ps -ef

See all processes inside the pod using this command.

$ exit

Type exit command to come out of the pod.

Thanks for reading. Hope you're having a good day!

PreviousKubernetes Dashboard

Last updated 3 years ago

Was this helpful?