{"id":23978207,"url":"https://github.com/graphtylove/kubernetes-demo","last_synced_at":"2026-04-11T12:43:33.759Z","repository":{"id":265404692,"uuid":"895138939","full_name":"GraphtyLove/kubernetes-demo","owner":"GraphtyLove","description":"Small Demo to show how to deploy on Kubernetes","archived":false,"fork":false,"pushed_at":"2024-11-29T10:20:55.000Z","size":4,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-03T19:40:39.597Z","etag":null,"topics":["api","becode","course","deploy","docker","fastapi","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/GraphtyLove.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":"2024-11-27T16:19:22.000Z","updated_at":"2024-12-02T10:07:35.000Z","dependencies_parsed_at":null,"dependency_job_id":"3a405263-0b59-437d-8629-60e959c7ac92","html_url":"https://github.com/GraphtyLove/kubernetes-demo","commit_stats":null,"previous_names":["graphtylove/kubernetes-demo"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/GraphtyLove/kubernetes-demo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GraphtyLove%2Fkubernetes-demo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GraphtyLove%2Fkubernetes-demo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GraphtyLove%2Fkubernetes-demo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GraphtyLove%2Fkubernetes-demo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/GraphtyLove","download_url":"https://codeload.github.com/GraphtyLove/kubernetes-demo/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GraphtyLove%2Fkubernetes-demo/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267198700,"owners_count":24051559,"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","status":"online","status_checked_at":"2025-07-26T02:00:08.937Z","response_time":62,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["api","becode","course","deploy","docker","fastapi","kubernetes","python"],"created_at":"2025-01-07T08:17:20.035Z","updated_at":"2025-10-30T04:44:02.292Z","avatar_url":"https://github.com/GraphtyLove.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# kubernetes-demo\n\nSmall Demo to show how to deploy on Kubernetes.\n\n**[Slides here](https://docs.google.com/presentation/d/175mXUK2vpoTbcjPfJcrHBIe9KFPQFT_7/)**\n\n## API\n\nThe API is a simple FastAPI application.\n\n### Build \u0026 push the image\n\nCreate an account on [Docker Hub](hub.docker.com/).\n\n```bash\n# Login to Docker Hub\ndocker login\n# Build the image\ndocker build -t \u003cyour-docker-hub-username\u003e/api-demo:latest .\n# Push the image\ndocker push inoopa/api-demo:latest\n```\n\nIf you are on a Mac with M1, M2, M3,... you can use the following command to build \u0026 push the image:\n\n*[More information](https://stackoverflow.com/questions/74942945/how-to-build-a-docker-image-for-m1-mac-silicon-or-amd-conditionally-from-dockerf)*\n\n```bash\ndocker buildx build --platform linux/amd64 --push -t \u003cyour-docker-hub-username\u003e/api-demo:latest .\n```\n\n### Run locally\n\n```bash\ndocker run -p 80:80 \u003cyour-docker-hub-username\u003e/api-demo:latest\n```\n\n## Kubernetes\n\nThe Kubernetes manifests are in the `kubernetes` folder.\n\n```bash\nkubectl apply -f kubernetes/manifest.yaml\n```\n\nThen you need to forward the port to your local machine:\n\n```bash\nkubectl port-forward -n api-demo-namespace service/api-demo-service 8080:80\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgraphtylove%2Fkubernetes-demo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgraphtylove%2Fkubernetes-demo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgraphtylove%2Fkubernetes-demo/lists"}