This hands-on we will deploy a Nginx Edge proxy in front of our k8s application
- Use sample microservices app for AKS demos, tutorials, and experiments: https://github.com/Azure-Samples/aks-store-demo/blob/main/aks-store-quickstart.yaml
# Deploy on demo namespace
kubectl create ns edge-proxy-demo
kubectl apply -f https://raw.githubusercontent.com/Azure-Samples/aks-store-demo/main/aks-store-quickstart.yaml -n edge-proxy-demo
# Check
kubectl get all -n edge-proxy-demo
kubectl apply -f hands-on/k8s-edge-proxy/nginx-edge-proxy.yaml
# Verify
kubectl get svc
- Forward port
kubectl port-forward svc/nginx-ingress 8080:80
-
We now can asccess: http://localhost:8080
# Cleanup Nginx Edge proxy
kubectl apply -f hands-on/k8s-edge-proxy/nginx-edge-proxy.yaml
# Clean up app
kubectl Delete -f https://raw.githubusercontent.com/Azure-Samples/aks-store-demo/main/aks-store-quickstart.yaml -n edge-proxy-demo