HTTP Status server returns the HTTP status code for the requested path. This server uses Python Flask module
Code:
- All the main program and unittest codes are placed in
app
folder - Required pip packages are kept in
app/pip-requirements.txt
Deployment:
-
Containerization:
docker buildx build --platform linux/amd64 -t manju369/flask-server:2 .
-
Kubernetes:
Hosting these services in my free tier GCP-GKE account
kubectl apply -f /
creates deployment, service, ingress-rule and service-monitor(prometheus operated) resources
-
Sending Request:
Requests through
curl
command:
curl http://35.244.49.131.nip.io/codes
curl http://35.244.49.131.nip.io/codes/update
curl http://35.244.49.131.nip.io/codes/call-backend
- Response:
Prometheus and Grafana DashBoards: