This repository contains two simple Python “nodes” (scripts) that demonstrate containerization and deployment on Kubernetes:
- Random Number Generator – Generates a random number.
- Subtraction Service – Accepts two numbers (or a static number) and returns their difference.
Your tasks are:
- Containerize these nodes.
- Deploy them to Kubernetes (can use Minikube).
- Connect them via Kubernetes Services (or similar).
Bonus points:
- Write an interface in Python to interact with the deployed containers. Consider:
-
- Debugging and monitoring the containers.
-
- Retrieving outputs from the containers.
-
- Any other ways you could make developing against the cluster easier.
- Fork/clone this repository.
- Create a new branch for your changes (e.g.,
feature/k8s-setup). - Implement your solution.
- Verify that everything runs as expected:
- Build and run the Docker containers locally.
- Deploy to a test Kubernetes cluster.
- Share the link to your repository (or fork) so we can review it.