Skip to content

Commit 7e91b70

Browse files
committed
add new blog post to README
1 parent 6279ad5 commit 7e91b70

File tree

2 files changed

+14
-5
lines changed

2 files changed

+14
-5
lines changed

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@
4040
* Consumer-Driven Contracts with Spring Cloud Contract ([Blog](https://rieckpil.de/howto-consumer-driven-contracts-with-spring-cloud-contract/), [Sources](https://github.com/rieckpil/blog-tutorials/tree/master/consumer-driven-contracts-with-spring-cloud-contract))
4141
* Send emails with Java EE using Payara ([Blog](https://rieckpil.de/howto-send-emails-with-java-ee-using-payara), [Sources](https://github.com/rieckpil/blog-tutorials/tree/master/java-ee-sending-mails))
4242
* Use Spring’s WebClient for RESTful communication ([Blog](https://rieckpil.de/howto-use-springs-webclient-for-restful-communication/), [Sources](https://github.com/rieckpil/blog-tutorials/tree/master/spring-web-client-demo))
43+
* Deploy Java EE applications to Kubernetes ([Blog](https://rieckpil.de/howto-deploy-java-ee-applications-to-kubernetes), [Sources](https://github.com/rieckpil/blog-tutorials/tree/master/java-ee-kubernetes-deployment))
4344

4445
## WHATIS?:
4546

+13-5
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
1-
```
2-
docker run -d -p 5000:5000 --restart=always --name registry registry:2
3-
docker tag ubuntu localhost:5000/ubuntu
4-
docker push localhost:5000/ubuntu
5-
```
1+
# Codebase for the blog post [#HOWTO: Deploy Java EE applications to Kubernetes](https://rieckpil.de/howto-deploy-java-ee-applications-to-kubernetes)
2+
3+
Steps to run this project:
4+
5+
1. Clone this Git repository
6+
2. Navigate to the folder `java-ee-kubernetes-deployment`
7+
3. Make sure you have Docker with Kubernetes support running on your machine
8+
4. Create a local Docker registry: `docker run -d -p 5000:5000 --restart=always --name registry registry:2`
9+
5. Build the application with `mvn clean package`
10+
6. Build the Docker image with `docker build -t java-ee-kubernetes .`
11+
7. Tag and push the Docker image to your local registry `docker tag java-ee-kubernetes localhost:5000/java-ee-kubernetes`
12+
8. Deploy the application with `kubectl apply -f deployment.yml`
13+
9. Wait until the two pods are available and then visit http://localhost:31000/resources/sample

0 commit comments

Comments
 (0)