{"id":19705503,"url":"https://github.com/arun-gupta/docker-kubernetes-hello-world","last_synced_at":"2025-07-08T08:09:13.315Z","repository":{"id":40694176,"uuid":"126425861","full_name":"arun-gupta/docker-kubernetes-hello-world","owner":"arun-gupta","description":"Docker \u0026 Kubernetes Hello World","archived":false,"fork":false,"pushed_at":"2021-06-10T02:46:19.000Z","size":28,"stargazers_count":28,"open_issues_count":3,"forks_count":163,"subscribers_count":3,"default_branch":"master","last_synced_at":"2023-04-04T04:47:31.225Z","etag":null,"topics":["container","docker","hello-world","java","kubernetes","spring-boot"],"latest_commit_sha":null,"homepage":"","language":"Java","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/arun-gupta.png","metadata":{"files":{"readme":"readme.adoc","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}},"created_at":"2018-03-23T03:06:28.000Z","updated_at":"2023-04-04T04:47:31.226Z","dependencies_parsed_at":"2022-08-10T00:40:53.432Z","dependency_job_id":null,"html_url":"https://github.com/arun-gupta/docker-kubernetes-hello-world","commit_stats":null,"previous_names":[],"tags_count":null,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arun-gupta%2Fdocker-kubernetes-hello-world","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arun-gupta%2Fdocker-kubernetes-hello-world/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arun-gupta%2Fdocker-kubernetes-hello-world/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arun-gupta%2Fdocker-kubernetes-hello-world/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/arun-gupta","download_url":"https://codeload.github.com/arun-gupta/docker-kubernetes-hello-world/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224178210,"owners_count":17268835,"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":["container","docker","hello-world","java","kubernetes","spring-boot"],"created_at":"2024-11-11T21:28:40.440Z","updated_at":"2024-11-11T21:28:40.934Z","avatar_url":"https://github.com/arun-gupta.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"= Hello World with Docker and Kubernetes\n\nThis repo consists of a Spring Boot Hello World application. It shows:\n\n. Run \u0026 test the application from CLI\n. Create a Docker image, run the container and test it\n. Create Kubernetes deployment and test it\n\nLet's get started!\n\n== CLI\n\n=== Run App\n\n```\nmvn spring-boot:run\n```\n\n=== Test Application\n\n```\ncurl http://localhost:8080\n```\n\n== Docker\n\n=== Build Application\n\n```\nmvn clean package\n```\n\n=== Build Docker Image\n\n```\ndocker image build -t arungupta/helloworld-spring-boot:latest .\n```\n\n=== Push Docker Image\n\n```\ndocker image push arungupta/helloworld-spring-boot:latest\n```\n\n=== Run Docker Container\n\n```\ndocker container run -d --name hello-world -p 8080:8080 arungupta/helloworld-spring-boot:latest\n```\n\n=== Test Application\n\n```\ncurl http://localhost:8080\n```\n\n=== Delete Docker Container\n\n```\ndocker container rm -f hello-world\n```\n\n== Kubernetes\n\n=== Create Deployment\n\n```\nkubectl apply -f deployment.yaml\n```\n\n=== Test Application\n\n```\ncurl http://`kubectl get svc hello-world-service -o jsonpath={.status.loadBalancer.ingress[0].hostname}`\n```\n\n=== Delete Deployment\n\n```\nkubectl delete -f deployment.yaml\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farun-gupta%2Fdocker-kubernetes-hello-world","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Farun-gupta%2Fdocker-kubernetes-hello-world","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farun-gupta%2Fdocker-kubernetes-hello-world/lists"}