Skip to main content

Azure Web Store on Kubernetes — Environment Setup & Docker Images

·1 min read

by Frank Doka

Article

Azure Web Store on Kubernetes — Environment Setup & Docker Images

This build log covers the foundation: setting up Azure resources and building Docker images for all four microservices before deploying to Kubernetes.

Azure Kubernetes web store architecture: customers authenticate via Azure B2C, traffic routes through API Management to Spring Boot microservices on AKS, with GitHub Actions pushing images to ACR.
The AKS microservices architecture this project deploys.

Azure Resources

Deployed the initial Azure infrastructure:

  • Azure Container Registry — Private registry for storing Docker images
  • App Service + App Service Plan — Initial hosting target before migrating to AKS
  • AKS cluster — Managed Kubernetes for the final deployment

Building Docker Images Locally

The microservices are pre-built Java Spring Boot applications. Before pushing anything to Azure, I built and tested all four images locally:

# Create a bridge network for inter-service communication
docker network create webappbridge

# Build and run each service
docker build -t webappservice .
docker run --rm --net webappbridge --name webappservice \
  -p 8081:8081 -e WEBAPPSERVICE_SERVER_PORT=8081 -d webappservice:latest

# Repeat for Product Service (8082) and Order Service (8083)

Each service runs on its own port, communicates over the Docker bridge network, and responds correctly to API calls — confirmed with local testing before touching Azure.

The Full Picture

From here the images get pushed to Azure Container Registry and deployed to AKS through a GitHub Actions pipeline, with Azure B2C handling customer identity and API Management fronting the services. The project overview walks through the complete architecture end to end.

More articles

CI/CD Pipeline for NGINX on Docker — Phase 5: Automated Deployments with Jenkins

Jenkins orchestrates the full pipeline — Terraform provisioning, Ansible configuration, container deployment, and smoke testing on every Git push.

Read more

CI/CD Pipeline for NGINX on Docker — Phase 2: Creating the Docker Image

Writing the Dockerfile, bundling NGINX with a self-signed OpenSSL certificate, testing locally, and pushing to Docker Hub.

Read more