Tag: kubectl

Browse all articles, tutorials, and guides about kubectl

Posts

Kubernetes
2025-04-05|6 min read

How to Switch Namespace in Kubernetes

Learn how to switch between namespaces in Kubernetes using kubectl commands and configuration files. Understand the importance of namespaces and practical examples.

Kubernetes
2024-12-19|7 min read

How to Fix Pods Stuck in Terminating Status in Kubernetes

Learn how to diagnose and resolve Kubernetes pods that are stuck in Terminating status using kubectl commands, finalizers, and force deletion techniques.

Kubernetes
2024-12-13|8 min read

kubectl apply vs kubectl create: Understanding the Key Differences

Learn the differences between kubectl apply and kubectl create commands, when to use each, and how they handle resource management in Kubernetes deployments.

Kubernetes
2024-11-10|5 min read

How to List All Pods and Their Nodes in Kubernetes

Learn how to list all pods in your Kubernetes cluster along with the nodes they're running on, using kubectl and command-line tools for clear, actionable output.

Kubernetes
2024-10-12|6 min read

How to Update a Kubernetes Secret Generated from a File

Learn how to update an existing Kubernetes secret when its data comes from a file, with practical kubectl commands and tips for safe secret management.

Kubernetes
2024-08-01|5 min read

How to Cleanly List All Containers in a Kubernetes Pod

Learn several ways to list all containers in a Kubernetes pod using kubectl and JSONPath, with practical examples for real-world troubleshooting and automation.

Kubernetes
2024-07-15|6 min read

How to Switch kubectl Clusters Between gcloud and minikube

Learn how to seamlessly switch between gcloud and minikube clusters using kubectl commands.

Kubernetes
2024-03-15|5 min read

How to Get Events Only for a Pod with kubectl

Learn how to filter and view Kubernetes events for a specific pod using kubectl, with practical examples for troubleshooting and automation.