Summary
Since we're already discussing kubectl's shortcomings, let's talk about its second largest one. You shouldn't try to use Kubectl as if it were a debugging utility. Inevitably, the "10-questions-game" with kubectl will arise for any business that has begun implementing Kubernetes. The first thing you should not do if there is a serious issue in your production cluster is to open a terminal and run kubectl. If you are doing this at 3 a.m. when output is down and you are on call, you have already lost.
kubectl get ns
kubectl get pods -n sales
kubectl describe pod prod-app-1233445 -n sales
kubectl get svc - n sales
kubectl describe...
You need to implement effective monitoring, tracing, and logging systems across all of your Kubernetes instances so that problems can be located promptly. You should add whatever it is you need to examine with kubectl to your monitoring tools if you find yourself running kubectl to check on it.A specialized instrument should be used even for a simple inspection of a cluster with which you are unfamiliar. Today, a wide variety of Kubernetes cluster inspection instruments are available.
Continuous Blog Series :
Blog #1 : Kubernetes Design Pattern Series - An Overview
Blog #2 : K8s Design Pattern Series - Fundamental Pattern
Blog #3 : K8s Design Pattern Series - Structural Pattern
Blog #4: K8s Design Pattern Series: Behavioral Patterns
Blog #5: K8s Design Pattern Series: Higher Level Patterns
Blog #6: K8s Design Pattern Series: Summary
Blog #7: K8s Anti-Design Pattern Series
Blog #10: K8s Anti-Design Pattern Series - Mixing Infrastructure and Application Deployment
Blog #11: K8s Anti-Design Pattern Series - Deploying without Memory and CPU Limits
Blog #12: K8s Anti-Design Pattern Series - Understanding Health Probes In Kubernetes
Blog #14: K8s Anti-Design Pattern Series - Why Deployment Metrics matter in Kubernetes
Blog #15: K8s Anti-Design Pattern Series - To Kubernetes or not to Kubernetes weighing Pros and Cons
Blog #16:K8s Anti-Design Pattern Series - Connecting Applications to Kubernetes Features/Services
Blog #17: K8s Anti-Design Pattern Series - Manual Kubectl Edit/Patch Deployments
Blog #18: K8s Anti-Design Pattern Series - Kubernetes Deployments with Latest-Tagged Containers
Blog #19: K8s Anti-Design Pattern Series - Kubectl Debugging
Blog #20: K8s Anti-Design Pattern Series - Misunderstanding Kubernetes Network Concepts
Blog #22: K8s Anti-Design Pattern Series - Combining Clusters of Production and Non-Production