feat: Add deployment scripts and hard node affinity for nginx-load-balancer example

This commit is contained in:
mik-tf
2025-11-07 22:18:44 -05:00
parent 3028643a2c
commit 77e054cdea
6 changed files with 530 additions and 13 deletions

View File

@@ -14,10 +14,11 @@ cd myceliumcloud-examples/examples/nginx-load-balancer
**What this script does:**
1. ✅ Deploy 3 nginx replicas (production-ready scaling)
2. ✅ Create LoadBalancer service with automatic IPv6
3. ✅ Configure worker node preferences
4.Update website content with service information
5.Verify load balancing functionality
6.Show you the automatic IPv6 assignment
3. ✅ Configure hard worker node affinity (ensures pods on workers only)
4.Support both LoadBalancer IP and direct node access
5.Update website content with service information
6.Verify load balancing functionality
7. ✅ Show you the automatic IPv6 assignment
**Expected output:**
```
@@ -42,6 +43,7 @@ To access from a machine with Mycelium installed:
- **Traffic Distribution** - Automatic load balancing across 3 replicas
- **Worker Node Preferences** - Deploy only on worker nodes (not masters)
- **Production Patterns** - Real-world scaling and reliability
- **Dual-Access Networking** - Both LoadBalancer IP and direct node access supported
---