This repository contains the code of a simple Node.js application and the required manifests to orchestrate and deploy the application locally using Minikube.
- Docker Engine
- Minikube
- kubectl
Clone using HTTPS:
git clone https://github.com/IgnatiosSar/seip_assignment_1_2026.gitOr clone using SSH:
git clone git@github.com:IgnatiosSar/seip_assignment_1_2026.gitThen enter the root directory of the repository:
cd seip_assignment_1_2026Ensure your Docker Engine is running (you can easily do this by opening Docker Desktop) before starting Minikube.
Assuming you have Minikube installed, run:
minikube startAfter spinning up Minikube, you can apply all manifests using:
kubectl apply -f k8s/Alternatively, you can apply them manually in the following sequence:
cd k8s
kubectl apply -f configmap.yaml
kubectl apply -f secret.yaml
kubectl apply -f deployment.yaml
kubectl apply -f service.yamlNote: The order between configmap and secret doesn't matter.
Because the service type is set to ClusterIP, in order to access the endpoints you must first map the ClusterIP service to your localhost:
kubectl port-forward service/echo-api-service 8080:80Now you can interact with the following endpoints using your browser or using curl:
- Main endpoint: http://localhost:8080/
- Secure endpoint: http://localhost:8080/secure-config
- Health check endpoint: http://localhost:8080/health