Skip to content

Latest commit

 

History

History

k8s-edge-proxy

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

Edge proxy Nginx

This hands-on we will deploy a Nginx Edge proxy in front of our k8s application

1. Deploy Sample microservices - by Azure

# 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

2. Deploy edge proxy

kubectl apply -f hands-on/k8s-edge-proxy/nginx-edge-proxy.yaml

# Verify
kubectl get svc

3. Access the proxy

  • Forward port
kubectl port-forward svc/nginx-ingress 8080:80

4. Clean up

# 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