{"id":21828852,"url":"https://github.com/johnnymarquezv/flask-docker-kubernetes-kind","last_synced_at":"2026-04-09T02:32:19.961Z","repository":{"id":227961791,"uuid":"622550246","full_name":"johnnymarquez/flask-docker-kubernetes-kind","owner":"johnnymarquez","description":"Flask application with ingress to run locally using kind cluster \u0026 docker.","archived":false,"fork":false,"pushed_at":"2023-04-02T13:25:04.000Z","size":5,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-26T08:41:44.439Z","etag":null,"topics":["docker","flask","ingress","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/johnnymarquez.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2023-04-02T13:00:14.000Z","updated_at":"2023-04-02T13:28:10.000Z","dependencies_parsed_at":null,"dependency_job_id":"787643da-21cb-41b9-9edb-6703dce63ee3","html_url":"https://github.com/johnnymarquez/flask-docker-kubernetes-kind","commit_stats":null,"previous_names":["johnnymarquez/flask-docker-kubernetes-kind"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johnnymarquez%2Fflask-docker-kubernetes-kind","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johnnymarquez%2Fflask-docker-kubernetes-kind/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johnnymarquez%2Fflask-docker-kubernetes-kind/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johnnymarquez%2Fflask-docker-kubernetes-kind/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/johnnymarquez","download_url":"https://codeload.github.com/johnnymarquez/flask-docker-kubernetes-kind/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244798320,"owners_count":20512024,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["docker","flask","ingress","kubernetes","python"],"created_at":"2024-11-27T18:18:29.738Z","updated_at":"2025-12-30T23:59:36.433Z","avatar_url":"https://github.com/johnnymarquez.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Flask Application with Docker \u0026 Kubernetes\n\nThis is a simple Flask application with a Dockerfile and Kubernetes manifests to help you deploy it locally in 3 different ways.\n- Python \u0026 Flask on localhost.\n- Docker container.\n- Kubernetes in kind cluster.\n\n## Requirements\n\n- Python 3 installed (if you want to run the application locally)\n- Docker installed\n- [Kind installed](https://kind.sigs.k8s.io/)\n- [Kind ingress configured](https://kind.sigs.k8s.io/docs/user/ingress/)\n\n## Installation\n\n1. Clone the repository to your local machine.\n2. Open a terminal and navigate to the root directory of the project.\n3. If you want to run the application locally, install the Flask dependencies by running the following command:\n\n```\npip install -r requirements.txt\n```\n\n4. To run the application locally, execute the following command from the project root directory:\n\n```\npython app/main.py\n```\n\n5. To run the application using Docker, you need to first build the Docker image by running the following command from\n   the\n   project root directory:\n\n```\ndocker build -t my-flask-app .\n```\n\n6. After building the Docker image, you need to tag it by running the following command:\n\n```\ndocker tag my-flask-app:latest my-registry/my-flask-app:latest\n```   \n\nNote: Replace my-registry with your Docker registry name.\n\n7. To run the application using Docker, execute the following command:\n\n```\ndocker run -p 5001:5000 my-registry/my-flask-app\n```\n\nNote: Replace my-registry with your Docker registry name.\n\n8. If you want to run the application in a Kubernetes cluster using Kind, first create a Kind cluster using the ingress\n   configuration at https://kind.sigs.k8s.io/docs/user/ingress/\n\n\n9. After creating the Kind cluster, you need to load the Docker image into the Kind cluster by running the following\n\n```\nkind load docker-image my-registry/my-flask-app:latest --name my-cluster\n```\n\nNote: Replace my-registry with your Docker registry name.\n\nAs an alternative, you can push the image to your personal docker registry.\n\n\n10. To deploy the application to the Kind cluster, apply the deployment.yaml file by running the following command:\n\n```\nkubectl apply -f manifest.yaml\n```\n\nThe manifest contain the deployment configuration, service and ingress. Verify you have all the resources by running:\n\n```\nkubectl get all\nkubectl get ingress\n```\n\nYou should be able to access the application at your `localhost`.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjohnnymarquezv%2Fflask-docker-kubernetes-kind","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjohnnymarquezv%2Fflask-docker-kubernetes-kind","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjohnnymarquezv%2Fflask-docker-kubernetes-kind/lists"}