{"id":24672194,"url":"https://github.com/akaspatranobis/flask-api-microservices-k8","last_synced_at":"2026-04-09T01:31:37.779Z","repository":{"id":271441856,"uuid":"913466823","full_name":"akaspatranobis/flask-api-microservices-k8","owner":"akaspatranobis","description":"Flask, Mongo App","archived":false,"fork":false,"pushed_at":"2025-01-07T18:44:54.000Z","size":8,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-10T12:38:15.365Z","etag":null,"topics":["flask","kubernetes","python"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/akaspatranobis.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-01-07T18:33:07.000Z","updated_at":"2025-01-08T18:43:03.000Z","dependencies_parsed_at":null,"dependency_job_id":"a90ecad7-5344-4fa3-9cb3-56f78595eaae","html_url":"https://github.com/akaspatranobis/flask-api-microservices-k8","commit_stats":null,"previous_names":["akaspatranobis/flask-api-microservices-k8"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/akaspatranobis/flask-api-microservices-k8","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akaspatranobis%2Fflask-api-microservices-k8","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akaspatranobis%2Fflask-api-microservices-k8/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akaspatranobis%2Fflask-api-microservices-k8/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akaspatranobis%2Fflask-api-microservices-k8/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/akaspatranobis","download_url":"https://codeload.github.com/akaspatranobis/flask-api-microservices-k8/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akaspatranobis%2Fflask-api-microservices-k8/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31581864,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-08T14:31:17.711Z","status":"ssl_error","status_checked_at":"2026-04-08T14:31:17.202Z","response_time":54,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["flask","kubernetes","python"],"created_at":"2025-01-26T10:13:10.576Z","updated_at":"2026-04-09T01:31:37.728Z","avatar_url":"https://github.com/akaspatranobis.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Kubernetes Microservice Flask Application\n\nThis is a microservice application built using Flask and deployed on Kubernetes. It is designed to demonstrate how to build and deploy microservices on a Kubernetes cluster.\n\n## Table of Contents\n\n- [Installation](#installation)\n- [Usage](#usage)\n- [Contributing](#contributing)\n- [License](#license)\n\n## Installation\n\nTo install and run the application on your Kubernetes cluster, follow these steps:\n\n1. Clone this repository to your local machine.\n2. Navigate to the project root directory.\n3. Create a Kubernetes deployment and service by running the following command:\n\n`kubectl apply -f kubernetes.yaml`\n\n4. Verify that the deployment and service have been created successfully by running the following command:\n\n`kubectl get deployments,services`\n\n5. If everything is working properly, you should see the name of your deployment and service listed in the output.\n\n6. Load some Data in Mongo.\n   `mongosh\n   \n    use dev;\n    db.task.insertMany([\n        { task: \"Complete Kubernetes setup\" },\n        { task: \"Build Flask app\" },\n        { task: \"Deploy app to Kubernetes\" }\n    ]); `\n\n7. Using the POST Method to Add Data.\n   The POST /task endpoint accepts a JSON payload to create a new task.\n\n   `curl -X POST http://\u003cpublic-ip\u003e/task \\\n    -H \"Content-Type: application/json\" \\\n    -d '{\"task\": \"Write documentation for the app\"}' `\n\n8. Using the PUT Method to Update Data\n   The PUT /task/\u003cid\u003e endpoint allows you to update a task by its ID. To use it, you need the id of the task you want to update, which you can fetch using the GET /tasks endpoint.\n\n   `curl -X PUT http://\u003cpublic-ip\u003e/task/63d7b9c8... \\\n    -H \"Content-Type: application/json\" \\\n    -d '{\"task\": \"Write and review documentation for the app\"}' `\n    \n\n\n## Usage\n\nTo use the microservice, you can send HTTP requests to the service's endpoint. Here's an example request:\n\n`curl http://\u003cpublic-ip\u003e/tasks`\n\n\nThis should return a JSON response with a greeting message.\n\n## Contributing\n\nIf you'd like to contribute to this project, please fork the repository and create a new branch. Pull requests are welcome!\n\n## License\n\nThis project is licensed under the Apache License 2.0 - see the [LICENSE.md]","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fakaspatranobis%2Fflask-api-microservices-k8","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fakaspatranobis%2Fflask-api-microservices-k8","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fakaspatranobis%2Fflask-api-microservices-k8/lists"}