Load Balancers
What is a LoadBalancer Service?
How LoadBalancers Work in KKS
┌─────────────────────────────────────────────────────────┐
│ Kubernetes LoadBalancer Service │
└─────────────────┬───────────────────────────────────────┘
│
▼
┌─────────────────────────────────────────────────────────┐
│ OpenStack Cloud Controller Manager (OCCM) │
│ (Managed by Krutrim platform) │
└─────────────────┬───────────────────────────────────────┘
│
▼
┌─────────────────────────────────────────────────────────┐
│ OpenStack Load Balancer (Octavia) │
│ Created in your specified subnet │
└─────────────────┬───────────────────────────────────────┘
│
▼
┌─────────────────────────────────────────────────────────┐
│ External LoadBalancer: Floating IP (public internet) │
│ Internal LoadBalancer: Subnet IP (private only) │
└─────────────────────────────────────────────────────────┘IP Address Allocation
Layer 4 (L4) vs Layer 7 (L7) Load Balancing
Understanding the Recommended Architecture
Why Use Ingress Controllers for L7
Creating a LoadBalancer Service
Basic LoadBalancer Service
Understanding Service Ports
LoadBalancer Annotations
Basic Annotations
Connection and Timeout Settings
Load Balancing Algorithm
Health Check Configuration
X-Forwarded-For Header
Restrict Access to Specific IP Ranges
Additional Advanced Annotations
Common LoadBalancer Configurations
Example 1: Public Web Application (External with Health Checks)
Example 2: Internal Microservice (Private Network)
Example 3: Session-based Application (Source IP Affinity)
Example 4: High-Performance API (Connection Limits)
Example 5: HTTP Service with X-Forwarded-For
Complete Annotation Reference
User-Configurable Annotations
Annotation
Description
Example Value
Changing Service Types
Converting from LoadBalancer to NodePort or ClusterIP
Troubleshooting LoadBalancers
LoadBalancer Stuck in Pending
LoadBalancer Created but Not Accessible
Services with externalTrafficPolicy: Local
Best Practices
✅ Do's
❌ Don'ts
Additional Resources
Related Topics
Last updated
Was this helpful?

