How virtualelephant/k8s-sample-application works
This Kubernetes sample demonstrates a log-message pipeline: publisher containers send messages to RabbitMQ, a reader consumes them and updates shared HTML, and NGINX serves that page to users. The manifests also describe RabbitMQ and frontend exposure, shared persistent storage, and two publisher variants. Relationship evidence comes from the README and the sampled publisher/reader code; unsampled manifests limit confidence about exact Kubernetes wiring.
Main entry points: rabbitmq-prod.yaml RabbitMQ service · publisher.py AZ1 publisher · reader.py Message reader · frontend.yaml NGINX frontend
Components 13
Messaging
- Log queue
rabbitmq-prod.yaml - RabbitMQ service
rabbitmq-prod.yaml
Message producers
- AZ1 publisher
publisher-container-az1/publisher.py - AZ2 publisher
publisher-container-az2/publisher.py - Prometheus metrics endpoint
publisher-container-az1/publisher.py
Log presentation
- Message reader
reader-container/reader.py - Shared HTML storage
frontend-storage.yaml - HTML template
html-configmap.yaml - NGINX frontend
frontend.yaml - NGINX server config
nginx-container/nginx.conf
Kubernetes exposure
- Frontend access route
frontend-httpproxy.yaml - RabbitMQ access route
rabbitmq-httpproxy.yaml
Other components
- Browser user
Connections 14
- AZ1 publisher → RabbitMQ service: connects to
publisher-container-az1/publisher.py - AZ1 publisher → Log queue: publishes messages
publisher-container-az1/publisher.py - AZ2 publisher → RabbitMQ service: connects to
publisher-container-az2/publisher.py - AZ2 publisher → Log queue: publishes messages
publisher-container-az2/publisher.py - Message reader → RabbitMQ service: connects to
reader-container/reader.py - Message reader → Log queue: consumes messages
reader-container/reader.py - Message reader → Shared HTML storage: updates HTML
reader-container/reader.py - HTML template → Shared HTML storage: initializes page
README.md - NGINX frontend → Shared HTML storage: serves page
README.md - NGINX server config → NGINX frontend: configures
- Browser user → Frontend access route: requests page
README.md - Frontend access route → NGINX frontend: routes traffic
README.md - RabbitMQ access route → RabbitMQ service: exposes HTTP
README.md - AZ1 publisher → Prometheus metrics endpoint: exposes metrics
publisher-container-az1/publisher.py