Skip to content

pzombade/springboot-web-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

springboot-web-demo

springboot-web-demo

Open https://killercoda.com/playgrounds/scenario/kubernetes

kubectl apply -f https://raw.githubusercontent.com/pzombade/springboot-web-demo/master/deployment.yml

Wait until the spring1 pod goes in the running state: kubectl get all

NAME READY STATUS RESTARTS AGE pod/spring1-6f7867685c-pmx4p 1/1 Running 0 3m48s

NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE service/kubernetes ClusterIP 10.96.0.1 443/TCP 2d9h

NAME READY UP-TO-DATE AVAILABLE AGE deployment.apps/spring1 1/1 1 1 3m48s

NAME DESIRED CURRENT READY AGE replicaset.apps/spring1-6f7867685c 1 1 1 3m48s

Check the application is running on the port 8080 exec -it spring1-6f7867685c-pmx4p -- curl localhost:8080

Check that application picked the env from the deployment file kubectl exec -it spring1-6f7867685c-pmx4p -- curl localhost:8080/env Hello env k8scontrolplane

About

springboot-web-demo

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published