Troubleshooting & Debugging Microservices in Kubernetes
summary
A microservice-based Spring Boot UI with Redis and MySQL runs on a five-node Kubernetes cluster on GCP; production fails while staging works. Logs from kubectl logs and stern expose instance-level errors, BigQuery queries count exceptions by pod SHA (avoid using tag latest), Zipkin traces identify the failing Weather Service, Weave Scope shows live service calls, and labeling lets traffic be removed from a pod for debugging. A nonblocking Stackdriver Debugger agent captures snapshots and attaches an IDE debugger without pausing production.
AI-written summary · about
chapters (20)
- 0:00Introduction to Google Wind
- 2:14Why we built Google Wind
- 4:48Introducing Google Wind API
- 6:33Microservices architecture overview
- 8:23Demo fails in production
- 9:07Staging environment troubleshooting
- 11:39Image tagging best practices
- 13:32Debugging with Kubernetes logs
- 14:55Centralized logging with Stackdriver
- 17:25Querying logs in BigQuery
- 21:39Traffic routing with labels
- 23:47Debugging with kubectl exec
- 24:49Port forwarding for local debugging
- 25:54Network connectivity visualization
- 27:17Real-time observability with Weave Scope
- 28:20Distributed tracing with Zipkin
- 31:11Debugging with production agents
- 34:44Live debugging with IntelliJ
- 37:14Best practices recap
- 38:19Q&A session
