How to Diagnose and Resolve Kubernetes Glitches: A Comprehensive Guide