Join our Newsletter — 33% off our NHI Course
Home› Glossary› Cyber Security› kubectl get pods
Cyber Security

kubectl get pods

← Back to Glossary
By NHI Mgmt Group Updated November 3, 2026 Domain: Cyber Security

kubectl get pods is a kubectl command that lists pod resources in a Kubernetes cluster. It shows each pod’s name, status, readiness, restarts, age, and related namespace information, giving a quick view of workload state and scheduling health.

What kubectl get pods does in Kubernetes operations

kubectl get pods is a read-only operational command: it gives a quick inventory of pod objects, their phase, readiness, restart count, age, and namespace. In practice, that makes it the fastest first look at whether workloads are running, pending, crashing, or being rescheduled.

Because pods are the atomic unit most operators watch during incidents, this command is often the entry point for triage. It does not fix anything by itself, but it helps answer the immediate question, “Is the cluster placing and running workloads as expected?”

What the output tells you about workload health

The fields in the table are more useful than they first appear. READY shows whether the containers inside the pod are reporting healthy enough to serve traffic; STATUS reflects the current lifecycle state; RESTARTS can point to repeated container failure; and AGE helps distinguish a long-lived stable pod from a newly created one that may still be warming up.

Namespace context matters too, especially in multi-team clusters where the same workload name can exist in more than one namespace. A broad listing can quickly show whether a problem is isolated to one namespace or appears cluster-wide, which is useful when comparing deployment health, scheduling behavior, and rollout progress.

How operators use it during troubleshooting

In day-to-day operations, this command is usually the first step before drilling into events, logs, or a more specific resource view. If a pod is not ready, restarting repeatedly, or stuck in Pending, the next question is typically whether the cause is scheduling pressure, image pull failure, readiness probe failure, or a dependency issue inside the workload path.

The command is also useful for confirming whether a rollout actually produced the expected pod count and whether older pods are still present. That makes it a simple but important checkpoint for deployment verification, especially when you need a fast status read without moving immediately into deeper diagnostics.

Why this simple command is security-relevant

Although it is an administrative visibility command, the output can expose operational signals that matter to security teams, including unexpected restarts, unusual pod churn, or workloads appearing in namespaces they should not occupy. Those are not proof of compromise on their own, but they are often the first clue that a workload is unstable, misconfigured, or behaving in a way that deserves review.

In clusters with weak namespace boundaries, poor workload hygiene, or overly broad access to the Kubernetes API, a routine status listing can also reveal more about the environment than intended. That is why visibility into pod state should be paired with sound access control and careful separation of duties.

Risk and Threat Considerations

Pod listings can become sensitive when they are exposed to users who should not see cluster topology, workload naming, or namespace structure. They can also reveal the aftermath of an attack, such as repeated restarts, abnormal pod turnover, or workloads appearing where they were never expected.

Failure mechanism: An attacker or insider with API access can use routine inventory queries to map workloads, identify naming patterns, and spot weakly controlled namespaces or unstable services that are easier to target or abuse.

Impact: The result can be reconnaissance, faster lateral planning, or delayed detection of a compromised or misbehaving workload, especially when pod state is treated as harmless operational data instead of security-relevant telemetry.

Standards & Framework Alignment

This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.

NIST CSF 2.0, NIST SP 800-53 Rev 5 and CIS Controls v8 set the governance and control requirements practitioners need to meet.

FrameworkControl / ReferenceRelevance
NIST CSF 2.0DE.CM-01 — Monitoring for Anomalies and EventsPod status monitoring helps detect abnormal workload behavior in Kubernetes clusters.
Recommendation — Monitor pod state changes for unusual restarts, churn, and scheduling failures.
NIST SP 800-53 Rev 5AU-6 — Audit Review, Analysis, and ReportingOperational pod listings support review of events and activity patterns during troubleshooting and incident response.
AC-6 — Least PrivilegeAccess to cluster inventory commands should be limited to users who need workload visibility.
CM-8 — System Component InventoryThe command is a live inventory view of running pod components in Kubernetes.
Recommendation — Correlate pod inventory changes with logs and alerts to identify suspicious workload activity. Restrict pod-listing access to operators who require Kubernetes visibility for their role. Keep an accurate inventory of running pods and reconcile it with cluster records.
CIS Controls v8CIS-6 — Access Control ManagementCluster inventory visibility depends on controlling who can query workload and namespace information.
Recommendation — Limit who can enumerate pod and namespace state in production clusters.

Practitioner Guidance

Why practitioners should care: Treat kubectl get pods as a triage command, not just a convenience command. It gives the first signal that a workload is healthy, degraded, or unexpectedly changing, which is often the point where operators decide whether to inspect logs, events, or deployment state next.

What to watch for: Repeated restarts, CrashLoopBackOff, a growing number of Pending pods, or unfamiliar namespace placement should prompt follow-up. Those patterns usually mean the issue is beyond simple status viewing and needs deeper investigation into scheduling, application health, or cluster access.

Free weekly newsletter

Subscribe to the NHI & AI Identity Journal

The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.

Bonus 33% off our NHI Course when you subscribe.

NHIMG Editorial Note
Reviewed and updated by the NHIMG editorial team on November 3, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org