Public | Automated Build

Last pushed: 5 months ago
Short Description
HAProxy-based Voter API Gateway
Full Description

Voter API Gateway

Based on latest HAProxy Alpine Image. Used to manage the Voter API, currently consisting of the Voter, Candidate, and Election microservices.

HAProxy backend configuration:

backend election
    balance roundrobin
    server service_vip election:8080 check

backend candidate
    balance roundrobin
    server service_vip candidate:8080 check

backend voter
    balance roundrobin
    server service_vip voter:8080 check

Build Image

docker build -t garystafford/voter-api-gateway:kub-aks-0.5.4 .
docker push garystafford/voter-api-gateway:kub-aks-0.5.4

Run Locally

docker service create \
  --name voter-api-gateway \
  --port 8080:8080/tcp garystafford/voter-api-gateway:kub-aks
Docker Pull Command
Owner
garystafford
Source Repository