Monitoring Kubernetes with kubectl and rke2 ๐
Today, Iโm going to walk you through a quick example of monitoring pods across all namespaces in Kubernetes using kubectl, paired with rke2 for lightweight Kubernetes deployment.
๐ฅ๏ธ What I Achieved:
-
Monitored real-time pod status using
watch kubectl get pods -A -o wide -
Verified the version of
rke2installed and running
๐ ๏ธ How I Did It:
-
To keep an eye on all running pods in my Kubernetes cluster, I used the
watchcommand along withkubectl. The commandkubectl get pods -A -o wideprovides a wide output showing detailed information about all pods across namespaces. -
I confirmed the
rke2version withrke2 -v, showing version v1.28.13+rke2r1 running on Go v1.22.5.
Here's a screenshot from my terminal for reference:

๐ก This allows you to have real-time insight into your cluster's state, ensuring you can monitor deployments, troubleshoot issues, and keep things running smoothly.
๐ Connect with me:
Feel free to modify the path for the screenshot or adjust the content to better suit your personal style!
Imported from rifaterdemsahin.com ยท 2025