feat: Simplify nginx-nodeport example with worker-only deployment and improved learning path

This commit is contained in:
mik-tf
2025-11-07 11:00:23 -05:00
parent 14172e2164
commit 370c0d1547
3 changed files with 261 additions and 584 deletions

View File

@@ -43,8 +43,8 @@ echo -e " ${GREEN}✅ ConfigMaps deployed${NC}"
echo ""
echo " 📦 Deploying nginx application..."
kubectl apply -f nginx-nodeport-deployment.yaml
echo -e " ${GREEN}✅ nginx deployment created${NC}"
kubectl apply -f nginx-nodeport-deployment-worker-only.yaml
echo -e " ${GREEN}✅ nginx deployment created (worker-only)${NC}"
echo ""
echo " 📦 Creating NodePort service..."
@@ -107,7 +107,7 @@ echo ""
echo "🔍 Step 6: Updating website content with current node information..."
echo ""
./update-content.sh
./update-content-single.sh
if [ $? -eq 0 ]; then
echo -e "${GREEN}✅ Content updated successfully${NC}"
@@ -129,12 +129,6 @@ else
fi
echo ""
# Step 8: Run comprehensive tests
echo "🔍 Step 8: Running comprehensive tests..."
echo ""
./test-nodeport-ipv6.sh
echo ""
echo "=================================="
echo "🎉 Deploy and Test Complete!"
@@ -176,12 +170,8 @@ echo "📋 Next Steps:"
echo " • Open the URL in a browser to see your website"
echo " • Check logs: kubectl logs -f deployment/nginx-nodeport"
echo " • Scale replicas: kubectl scale deployment nginx-nodeport --replicas=3"
echo " • Update content: ./update-content.sh"
echo " • Run tests: ./test-nodeport-ipv6.sh"
echo " • Update content: ./update-content-single.sh or ./update-content-many.sh"
echo ""
echo "📚 Documentation:"
echo " • Guide: nginx-nodeport.md"
echo " • IPv6 Fix: IPV6_FIX.md"
echo " • Troubleshooting: TROUBLESHOOTING.md"
echo " • All variants: ../nginx-variants.md"
echo ""