GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - suresh955/docker-kubernetes-hello-world: Docker & Kubernetes Hello World

BranchesTags
Open more actions menu
 
 

Latest commit

 

History

20 Commits
20 Commits

Folders and files

NameName
Last commit message
Last commit date
charts
charts
 
 
src
src
 
 
.dockerignore
.dockerignore
 
 
.gitignore
.gitignore
 
 
Dockerfile
Dockerfile
 
 
LICENSE
LICENSE
 
 
NOTICE
NOTICE
 
 
azure-pipelines.yml
azure-pipelines.yml
 
 
deployment.yaml
deployment.yaml
 
 
pom.xml
pom.xml
 
 
readme.adoc
readme.adoc
 
 

Repository files navigation

Hello World with Docker and Kubernetes

This repo consists of a Spring Boot Hello World application. It shows:

  1. Run & test the application from CLI

  2. Create a Docker image, run the container and test it

  3. Create Kubernetes deployment and test it

Let’s get started!

CLI

Run App

mvn spring-boot:run

Test Application

curl http://localhost:8080

Docker

Build Application

mvn clean package

Build Docker Image

docker image build -t arungupta/helloworld-spring-boot:latest .

Push Docker Image

docker image push arungupta/helloworld-spring-boot:latest

Run Docker Container

docker container run -d --name hello-world -p 8080:8080 arungupta/helloworld-spring-boot:latest

Test Application

curl http://localhost:8080

Delete Docker Container

docker container rm -f hello-world

Kubernetes

Create Deployment

kubectl apply -f deployment.yaml

Test Application

curl http://`kubectl get svc hello-world-service -o jsonpath={.status.loadBalancer.ingress[0].hostname}`

Delete Deployment

kubectl delete -f deployment.yaml

About

Docker & Kubernetes Hello World

Resources

Readme
Apache-2.0 license
Activity

Stars

0 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.