Merge pull request #15165 from GaetanoPiazzolla/JAVA-27245-module-rename
JAVA-27245 - Renamed modules.
This commit is contained in:
commit
50c6e861be
|
@ -21,4 +21,4 @@ This module contains articles about bootstrapping Spring Cloud applications that
|
||||||
- git commit -m "First commit"
|
- git commit -m "First commit"
|
||||||
- start the config server
|
- start the config server
|
||||||
- start the discovery server
|
- start the discovery server
|
||||||
- start all the other servers in any order (gateway, svc-book, svc-rating, zipkin)
|
- start all the other servers in any order (gateway, zipkin-log-svc-book, zipkin-log-svc-rating, zipkin)
|
||||||
|
|
|
@ -19,8 +19,8 @@
|
||||||
<module>discovery</module>
|
<module>discovery</module>
|
||||||
<module>gateway</module>
|
<module>gateway</module>
|
||||||
<module>gateway-2</module>
|
<module>gateway-2</module>
|
||||||
<module>svc-book</module>
|
<module>zipkin-log-svc-book</module>
|
||||||
<module>svc-rating</module>
|
<module>zipkin-log-svc-rating</module>
|
||||||
<module>customer-service</module>
|
<module>customer-service</module>
|
||||||
<module>order-service</module>
|
<module>order-service</module>
|
||||||
</modules>
|
</modules>
|
||||||
|
|
|
@ -4,9 +4,9 @@
|
||||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
<groupId>com.baeldung.spring.cloud</groupId>
|
<groupId>com.baeldung.spring.cloud</groupId>
|
||||||
<artifactId>svc-book</artifactId>
|
<artifactId>zipkin-log-svc-book</artifactId>
|
||||||
<version>1.0.0-SNAPSHOT</version>
|
<version>1.0.0-SNAPSHOT</version>
|
||||||
<name>svc-book</name>
|
<name>zipkin-log-svc-book</name>
|
||||||
|
|
||||||
<parent>
|
<parent>
|
||||||
<groupId>com.baeldung</groupId>
|
<groupId>com.baeldung</groupId>
|
|
@ -4,9 +4,9 @@
|
||||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
<groupId>com.baeldung.spring.cloud</groupId>
|
<groupId>com.baeldung.spring.cloud</groupId>
|
||||||
<artifactId>svc-rating</artifactId>
|
<artifactId>zipkin-log-svc-rating</artifactId>
|
||||||
<version>1.0.0-SNAPSHOT</version>
|
<version>1.0.0-SNAPSHOT</version>
|
||||||
<name>svc-rating</name>
|
<name>zipkin-log-svc-rating</name>
|
||||||
|
|
||||||
<parent>
|
<parent>
|
||||||
<groupId>com.baeldung</groupId>
|
<groupId>com.baeldung</groupId>
|
|
@ -1,5 +1,5 @@
|
||||||
FROM openjdk:8-jdk-alpine
|
FROM openjdk:8-jdk-alpine
|
||||||
VOLUME /tmp
|
VOLUME /tmp
|
||||||
COPY target/demo-backend-1.0-SNAPSHOT.jar app.jar
|
COPY target/minikube-demo-backend-1.0-SNAPSHOT.jar app.jar
|
||||||
ENV JAVA_OPTS=""
|
ENV JAVA_OPTS=""
|
||||||
ENTRYPOINT exec java -jar /app.jar --debug
|
ENTRYPOINT exec java -jar /app.jar --debug
|
|
@ -3,8 +3,8 @@
|
||||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
<artifactId>demo-frontend</artifactId>
|
<artifactId>minikube-demo-backend</artifactId>
|
||||||
<name>demo-frontend</name>
|
<name>minikube-demo-backend</name>
|
||||||
|
|
||||||
<parent>
|
<parent>
|
||||||
<groupId>com.baeldung.spring.cloud</groupId>
|
<groupId>com.baeldung.spring.cloud</groupId>
|
|
@ -1,5 +1,5 @@
|
||||||
FROM openjdk:8-jdk-alpine
|
FROM openjdk:8-jdk-alpine
|
||||||
VOLUME /tmp
|
VOLUME /tmp
|
||||||
COPY target/demo-frontend-1.0-SNAPSHOT.jar app.jar
|
COPY target/minikube-demo-frontend-1.0-SNAPSHOT.jar app.jar
|
||||||
ENV JAVA_OPTS=""
|
ENV JAVA_OPTS=""
|
||||||
ENTRYPOINT exec java -jar /app.jar
|
ENTRYPOINT exec java -jar /app.jar
|
|
@ -3,8 +3,8 @@
|
||||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
<artifactId>demo-backend</artifactId>
|
<artifactId>minikube-demo-frontend</artifactId>
|
||||||
<name>demo-backend</name>
|
<name>minikube-demo-frontend</name>
|
||||||
|
|
||||||
<parent>
|
<parent>
|
||||||
<groupId>com.baeldung.spring.cloud</groupId>
|
<groupId>com.baeldung.spring.cloud</groupId>
|
|
@ -22,7 +22,7 @@ public class KubernetesFrontendApplication {
|
||||||
|
|
||||||
RestTemplate restTemplate = new RestTemplate();
|
RestTemplate restTemplate = new RestTemplate();
|
||||||
String resourceUrl
|
String resourceUrl
|
||||||
= "http://demo-backend:8080";
|
= "http://minikube-demo-backend:8080";
|
||||||
ResponseEntity<String> response
|
ResponseEntity<String> response
|
||||||
= restTemplate.getForEntity(resourceUrl, String.class);
|
= restTemplate.getForEntity(resourceUrl, String.class);
|
||||||
return "Message from backend is: " + response.getBody();
|
return "Message from backend is: " + response.getBody();
|
|
@ -1,10 +1,10 @@
|
||||||
kind: Service
|
kind: Service
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
metadata:
|
metadata:
|
||||||
name: demo-backend
|
name: minikube-demo-backend
|
||||||
spec:
|
spec:
|
||||||
selector:
|
selector:
|
||||||
app: demo-backend
|
app: minikube-demo-backend
|
||||||
tier: backend
|
tier: backend
|
||||||
ports:
|
ports:
|
||||||
- protocol: TCP
|
- protocol: TCP
|
||||||
|
@ -14,22 +14,22 @@ spec:
|
||||||
apiVersion: apps/v1
|
apiVersion: apps/v1
|
||||||
kind: Deployment
|
kind: Deployment
|
||||||
metadata:
|
metadata:
|
||||||
name: demo-backend
|
name: dminikube-demo-backend
|
||||||
spec:
|
spec:
|
||||||
selector:
|
selector:
|
||||||
matchLabels:
|
matchLabels:
|
||||||
app: demo-backend
|
app: minikube-demo-backend
|
||||||
tier: backend
|
tier: backend
|
||||||
replicas: 3
|
replicas: 3
|
||||||
template:
|
template:
|
||||||
metadata:
|
metadata:
|
||||||
labels:
|
labels:
|
||||||
app: demo-backend
|
app: minikube-demo-backend
|
||||||
tier: backend
|
tier: backend
|
||||||
spec:
|
spec:
|
||||||
containers:
|
containers:
|
||||||
- name: demo-backend
|
- name: minikube-demo-backend
|
||||||
image: demo-backend:latest
|
image: minikube-demo-backend:latest
|
||||||
imagePullPolicy: Never
|
imagePullPolicy: Never
|
||||||
ports:
|
ports:
|
||||||
- containerPort: 8080
|
- containerPort: 8080
|
||||||
|
|
|
@ -1,10 +1,10 @@
|
||||||
kind: Service
|
kind: Service
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
metadata:
|
metadata:
|
||||||
name: demo-frontend
|
name: minikube-demo-frontend
|
||||||
spec:
|
spec:
|
||||||
selector:
|
selector:
|
||||||
app: demo-frontend
|
app: minikube-demo-frontend
|
||||||
ports:
|
ports:
|
||||||
- protocol: TCP
|
- protocol: TCP
|
||||||
port: 8081
|
port: 8081
|
||||||
|
@ -14,20 +14,20 @@ spec:
|
||||||
apiVersion: apps/v1
|
apiVersion: apps/v1
|
||||||
kind: Deployment
|
kind: Deployment
|
||||||
metadata:
|
metadata:
|
||||||
name: demo-frontend
|
name: minikube-demo-frontend
|
||||||
spec:
|
spec:
|
||||||
selector:
|
selector:
|
||||||
matchLabels:
|
matchLabels:
|
||||||
app: demo-frontend
|
app: minikube-demo-frontend
|
||||||
replicas: 3
|
replicas: 3
|
||||||
template:
|
template:
|
||||||
metadata:
|
metadata:
|
||||||
labels:
|
labels:
|
||||||
app: demo-frontend
|
app: minikube-demo-frontend
|
||||||
spec:
|
spec:
|
||||||
containers:
|
containers:
|
||||||
- name: demo-frontend
|
- name: minikube-demo-frontend
|
||||||
image: demo-frontend:latest
|
image: minikube-demo-frontend:latest
|
||||||
imagePullPolicy: Never
|
imagePullPolicy: Never
|
||||||
ports:
|
ports:
|
||||||
- containerPort: 8081
|
- containerPort: 8081
|
||||||
|
|
|
@ -14,8 +14,8 @@
|
||||||
</parent>
|
</parent>
|
||||||
|
|
||||||
<modules>
|
<modules>
|
||||||
<module>demo-backend</module>
|
<module>minikube-demo-backend</module>
|
||||||
<module>demo-frontend</module>
|
<module>minikube-demo-frontend</module>
|
||||||
</modules>
|
</modules>
|
||||||
|
|
||||||
</project>
|
</project>
|
Loading…
Reference in New Issue