Coffee Pot … or Pod?
The first section concerns the development of a coffee machine in a Docker image. Note that we’ll be ultimately running the pot in a Kubernetes pod.
Not implemented here
The development of the coffee machine is not currently included here. For the time being, it can be given as a prerequisite exercise for participants to bring their own coffee machine. Any such solution must follow the criteria below.
Coffee pod
Docker image exposing the coffee API according to specs
Errors on job start
Response Code
Message
503
Machine busy
Errors on job retrieval
Response Code
Message
503
Job not ready
404
Job unknown
410
Job already retrieved
The prometheus metrics should be
# HELP coffee_machine_status The system status 0=idle,1=brewing,2=blocked or other. # TYPE coffee_machine_status gauge coffee_machine_status 0