![simple-split](https://private-user-images.githubusercontent.com/71296367/270163877-488070d0-84d6-4013-b185-63b64ebd031c.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjUyMTc1MTYsIm5iZiI6MTcyNTIxNzIxNiwicGF0aCI6Ii83MTI5NjM2Ny8yNzAxNjM4NzctNDg4MDcwZDAtODRkNi00MDEzLWIxODUtNjNiNjRlYmQwMzFjLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA5MDElMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwOTAxVDE5MDAxNlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTAzMDg1NThjZjhlNGViODAyN2IwNDdjODRmZGMwZDBjZjZlOGRmNjM4NDI0NDMyNjM0ZGY3NDJiMDRkNzQ5NzgmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.9muoSQkEnfZ6LyGwG5POZYuPIJjLPXfzz3TXcx1lHbI)
-
Follow these steps to install NGINX Gateway Fabric in your infrastructure.
-
Build the docker images with the
Dockerfile
in both thev1
andv2
directories and apply the deployments after withkubectl apply -f <deployment filename>
-
Run
kubectl apply -f gateway.yml
to deploy the gateway -
Run
kubectl apply -f services.yml
to deploy bothv1
andv2
services -
Run
kubectl apply -f traffic-split.yml
to deploy the split routing rules. This default configuration routes all traffic to v1. -
Run
curl.sh <Gateway IP> <Gateway Port>
to simulate requests to the backends with a returned number of requests to both backends.