Two examples using Envoy and NGINX to forward requests to a 2-container based pod.
You can deploy and run this with the following:
- Build the
Dockerfile
(s) located underenvoy-example/envoy
,envoy-example/go
,nginx-example/nginx
,nginx-example/go
,envoy/init-container
andnginx/init-container
- Push these images to Azure Container Registry
- Populate the environment variables referenced under
deploy/bash.sh
- Use the ARM template to deploy. Note, that this is implying a Container App Environment already exists. This template is only used to create or update a Container App - not any other resources.
If doing this through the portal - ensure both images exist in Azure Container Registry first - and create a Container App, or, add a sidecar to the existing application.
Ensure ingress
is set to the port of whichever proxy you're using.