LoadBalancer Service & Avi ALB Integration
Objectives
- Expose application via Kubernetes LoadBalancer service; verify Avi virtual service creation.
Prerequisites
VCF lab environment deployed and operational
Lab Environment
Standard VCF lab environment for Advanced VCF 9.0 VKS (vSphere Kubernetes Service)
Tasks
Task 1 LoadBalancer Service & Avi ALB Integration
Expose application via Kubernetes LoadBalancer service; verify Avi virtual service creation.
Deploy multi-replica application (e.g., nginx).
Create Service type=LoadBalancer: kubectl expose deployment nginx --type=LoadBalancer --port=80 --target-port=8080
Monitor ALB integration: In Avi UI, verify virtual service auto-created with pool members (pod IPs).
Allocate VIP from NSX subnet; verify route advertised via Tier-0 BGP.
Test external access: curl ; curl /health Confirm load balancing across pod replicas.
Scale deployment: kubectl scale deployment nginx --replicas=5 Verify ALB pool auto-updates.
Delete service; confirm ALB virtual service cleanup.
Document VIP allocation process, BGP advertisement, and pool management workflow.
Validation Gate
Check: Verify lab completion
Expected: Lab exercise completed successfully
Common Errors
Final Validation
Lab completed successfully
✓ All steps completed → No errors observed
Cleanup / Restore
• Revert to snapshot if needed
Design Reflection (VCDX)
Load balancer integration demonstrates application delivery architecture. VCDX panelists test Avi SE placement, VIP allocation, and health monitoring design.