Build a simple REST API. This API code needs to run in a Kubernetes cluster.
You may use any k8s implementation you like.
You can use any pod and container configuration you need, just make sure you follow Kubernetes best practices.
GET /user/{id} - Retrieves a specific user
POST /user - Creates a new user
DELETE /user/{id} - Deletes a specific user
You can use any language you want for the API, although you get extra points if you use python or go.
You can use any database backend you want, or none (You can use In Memory DB without persistence).
Use Makefile as the single entrypoint, to control the app flow.
-
make build: : Build and push the required image/s.
-
make deploy : Deploy the app to the cluster.
-
make test : Run tests to check that the API working (Cover all the methods).
We expect you provide a zip, with what you did.
- Reliability
- Code structure
- Tool/Libraries usage
- How would you implement deployment pipeline
- Tests
- Logging (what would you log, where you would store it etc)
- Documentation
- Further instructions to move it to production
This test has been designed to take you between 1 and 2 hours