manju369 / http-status-server

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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:

Screenshot 2023-01-31 at 10 14 31 AM

Prometheus and Grafana DashBoards:

Screenshot 2023-01-31 at 9 31 15 AM

Screenshot 2023-01-31 at 9 54 27 AM

About


Languages

Language:Python 82.3%Language:Dockerfile 17.7%