Postsread more
RBAC Misconfiguration Leads to Security Breach
Security Incident
An overly permissive RBAC configuration allowed an attacker to:
- Gain access through a compromised developer account
- Escalate privileges using cluster-admin binding
- Deploy cryptocurrency mining containers
- Access sensitive data from other namespaces
How It Happened
- Default namespace had cluster-admin role binding
- No network policies between namespaces
- No pod security policies enforced
- Developer accounts had excessive permissions
Immediate Actions
- Revoked all compromised credentials
- Deleted malicious pods
- Isolated affected nodes
- Rotated all cluster certificates
Long-term Fixes
- Implemented principle of least privilege
- Enabled network policies
- Deployed pod security admission
- Regular RBAC audits
- Developer security training
Postsread more
Network Partition Causes Split-Brain
The Incident
A network partition between availability zones caused our etcd cluster to split into two separate quorums, resulting in:
- Inconsistent cluster state
- Scheduling conflicts
- Data corruption in stateful applications
Root Cause
- Network provider had a routing issue between zones
- Our etcd cluster was spread across 3 zones but had no zone-aware configuration
- No network partition detection or automatic fencing
Resolution
- Manually identified the healthy partition
- Forced etcd to use only the healthy members
- Rebuilt the unhealthy nodes from backups
- Implemented zone-aware etcd configuration
Prevention
- Configure etcd with strict zone awareness
- Implement network health checks
- Regular disaster recovery drills
Postsread more
First Kubernetes Failure: Node Out of Disk
What Happened
Our production Kubernetes cluster experienced a complete outage when all worker nodes ran out of disk space simultaneously. This was caused by:
- Unbounded log growth from a misconfigured application
- No disk space monitoring alerts
- Default emptyDir volumes filling up node storage
The Impact
- All pods became pending as nodes were marked unschedulable
- 4 hours of downtime during peak traffic
- Data loss for applications using emptyDir storage
Lessons Learned
- Monitor disk usage: Set up alerts at 70%, 80%, and 90% capacity
- Log rotation: Configure proper log rotation for all containers
- Resource limits: Set storage limits on emptyDir volumes
- Multi-zone deployment: Distribute workloads across availability zones
The Fix
We implemented: