10 More Weird Ways to Blow Up Your Kubernetes
Talkat KubeCon + CloudNativeCon North America 2020 Virtual · on Thursday, 2020-11-19· at 17:40· Intrado Virtual Event Platform,·
summary
Test clusters hit 56,000 replica sets when a deployment’s collisionCount climbs to ~100,000 because topologySpreadConstraints aren’t copied into ReplicaSets; a mutating admission webhook produces a bad JSON patch order that prevents deploys for seven days until the webhook is removed; HPA bugs (zero current replicas, spinnaker migration, manual kubectl scale) repeatedly leave services at 0 replicas; deleting all masters breaks the API server; one deploy with huge maxSurge and crashloops drives API servers OOM; kube2iam race is mitigated by an init container that waits for creds; an ECR cleaner returns an empty list on error and deletes production images.
AI-written summary · about
chapters (28)
- 0:00Start
- 1:53Context
- 2:54Let's do more diff'ing
- 4:20Mutating Time Bomb
- 4:471 deployment, 3 replicasets??
- 5:09One hour later...
- 6:01Remember the first page?
- 6:30The Bug
- 9:55Edge case: ZERO
- 13:51Runbooks to the Rescue
- 14:3411:16, K8s master CPU goes up...
- 15:22What is happening?
- 15:49Response
- 16:07Postmortem
- 16:56Ongoing Unknowns
- 17:50Authentication via IAM Roles
- 19:07Race Conditions
- 20:17More Init Containers!
- 20:50Service Account IAM Auth
- 21:4136 cores on machine, 36 limits on cpu
- 21:59K8s limits pod's cpu usage using linux cgroups & CFS
- 23:30So with 36 cores, 36 limits...
- 24:07How is it affecting performance?
- 25:40Oops #1
- 26:36Oops #2 & #3
- 27:44The Fix & Takeaways
- 33:42Oops #3
- 34:22The fix #2
related talks
35m10 Weird Ways to Blow Up Your Kubernetes
37m10 Ways to Shoot Yourself in the Foot with Kubernetes, #9 Will Surprise You
27mRunning Kubernetes in Production A Million Ways to Crash Your Cluster
36m101 Ways to “Break and Recover” Kubernetes Cluster
36mKubernetes Confessions: Real Mistakes We’ve All Made (and What They Teach Us)
21mHow to Not Destroy Your Production Kubernetes Clusters
20m10 Common Things People Do Wrong in K8s Environments
31mLoad Testing Kubernetes: How to Optimize Your Cluster Resource Allocation in Production [I]
