This is an automated email from the ASF dual-hosted git repository.
liujun pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/dubbo-samples.git
The following commit(s) were added to refs/heads/master by this push:
new 73b021ecd [dubbo-samples-shop] Refractor: upgrade version, refractor
deploy manifests (#1213)
73b021ecd is described below
commit 73b021ecd413f345e2fa7c3266ffc2bb64e3aec2
Author: robb <[email protected]>
AuthorDate: Fri Apr 11 20:02:41 2025 +0800
[dubbo-samples-shop] Refractor: upgrade version, refractor deploy manifests
(#1213)
---
10-task/dubbo-samples-shop/deploy/All.yml | 379 ++++++++++--
10-task/dubbo-samples-shop/deploy/Gray.yml | 230 --------
10-task/dubbo-samples-shop/deploy/Namespace.yml | 25 -
.../deploy/comment-v1-gray/Deployment.yml | 43 +-
.../deploy/comment-v1/Deployment.yml | 43 +-
.../deploy/comment-v2/Deployment.yml | 43 +-
.../deploy/detail-v1-gray/Deployment.yml | 43 +-
.../deploy/detail-v1/Deployment.yml | 43 +-
.../deploy/detail-v2/Deployment.yml | 43 +-
.../deploy/dubbo-samples-shop-all.yaml | 644 +++++++++++++++++++++
.../dubbo-samples-shop/deploy/dubbo-system.yaml | 122 ++++
.../deploy/frontend/Deployment.yml | 41 +-
.../deploy/order-v1-gray/Deployment.yml | 43 +-
.../deploy/order-v1/Deployment.yml | 45 +-
.../deploy/order-v2/Deployment.yml | 45 +-
.../deploy/user-gray/Deployment.yml | 45 +-
.../dubbo-samples-shop/deploy/user/Deployment.yml | 43 +-
.../dubbo-samples-shop-comment-api/pom.xml | 4 +-
.../dubbo-samples-shop-comment-gray/Dockerfile | 4 +
.../dubbo-samples-shop-comment-gray/pom.xml | 26 +-
.../dubbo-samples-shop-comment-v1/Dockerfile | 4 +
.../dubbo-samples-shop-comment-v1/pom.xml | 20 +-
.../dubbo-samples-shop-comment-v2/Dockerfile | 4 +
.../dubbo-samples-shop-comment-v2/pom.xml | 20 +-
.../dubbo-samples-shop-detail-api/pom.xml | 4 +-
.../dubbo-samples-shop-detail-gray/Dockerfile | 4 +
.../dubbo-samples-shop-detail-gray/pom.xml | 20 +-
.../dubbo-samples-shop-detail-v1/Dockerfile | 4 +
.../dubbo-samples-shop-detail-v1/pom.xml | 20 +-
.../dubbo-samples-shop-detail-v2/Dockerfile | 4 +
.../dubbo-samples-shop-detail-v2/pom.xml | 20 +-
.../dubbo-samples-shop-frontend-api/pom.xml | 4 +-
.../dubbo-samples-shop-frontend/Dockerfile | 4 +
.../dubbo-samples-shop-frontend/pom.xml | 26 +-
.../src/main/resources/application.properties | 1 +
.../dubbo-samples-shop-order-api/pom.xml | 4 +-
.../dubbo-samples-shop-order-gray/Dockerfile | 4 +
.../dubbo-samples-shop-order-gray/pom.xml | 20 +-
.../dubbo-samples-shop-order-v1/Dockerfile | 4 +
.../dubbo-samples-shop-order-v1/pom.xml | 20 +-
.../dubbo-samples-shop-order-v2/Dockerfile | 4 +
.../dubbo-samples-shop-order-v2/pom.xml | 20 +-
.../dubbo-samples-shop-user-api/pom.xml | 4 +-
.../dubbo-samples-shop-user-gray/Dockerfile | 9 +
.../dubbo-samples-shop-user-gray/pom.xml | 20 +-
.../dubbo-samples-shop-user/Dockerfile | 4 +
.../dubbo-samples-shop-user/pom.xml | 23 +-
47 files changed, 1610 insertions(+), 639 deletions(-)
diff --git a/10-task/dubbo-samples-shop/deploy/All.yml
b/10-task/dubbo-samples-shop/deploy/All.yml
index 33e0c0212..78d13c28a 100644
--- a/10-task/dubbo-samples-shop/deploy/All.yml
+++ b/10-task/dubbo-samples-shop/deploy/All.yml
@@ -72,7 +72,7 @@ metadata:
name: nacos
namespace: dubbo-system
spec:
- type: ClusterIP
+ type: LoadBalancer
sessionAffinity: None
selector:
app: nacos
@@ -107,7 +107,7 @@ metadata:
labels:
app: dubbo-admin
spec:
- replicas: 2
+ replicas: 1
selector:
matchLabels:
app: dubbo-admin
@@ -211,7 +211,7 @@ metadata:
name: skywalking-oap-dashboard
namespace: dubbo-system
spec:
- type: ClusterIP
+ type: LoadBalancer
sessionAffinity: None
selector:
app: skywalking-oap-dashboard
@@ -220,7 +220,21 @@ spec:
name: http
targetPort: 8080
---
-
+apiVersion: v1
+kind: Service
+metadata:
+ name: dubbo-qos
+ namespace: dubbo-demo
+spec:
+ type: LoadBalancer
+ sessionAffinity: None
+ selector:
+ app-type: dubbo
+ ports:
+ - port: 22222
+ name: dubbo-qos
+ targetPort: 22222
+---
# App FrontEnd
apiVersion: apps/v1
kind: Deployment
@@ -236,6 +250,7 @@ spec:
metadata:
labels:
app: shop-frontend
+ app-type: dubbo
spec:
volumes:
- name: skywalking-agent
@@ -252,21 +267,26 @@ spec:
containers:
- name: shop-frontend
- image: apache/dubbo-demo:dubbo-samples-shop-frontend_0.0.1
+ image:
registry.cn-hangzhou.aliyuncs.com/robocanic-public/shop-frontend:0.1
imagePullPolicy: Always
ports:
- name: dubbo
containerPort: 20881
protocol: TCP
- name: dubbo-qos
- containerPort: 20991
+ containerPort: 22222
protocol: TCP
volumeMounts:
- name: skywalking-agent
mountPath: /skywalking
env:
- name: JAVA_TOOL_OPTIONS
- value: "-javaagent:/skywalking/agent/skywalking-agent.jar"
+ value: "-javaagent:/skywalking/agent/skywalking-agent.jar
+ -Ddubbo.application.qos-port=22222
-Ddubbo.application.qos-accept-foreign-ip=true
+
-Ddubbo.registry.address=nacos://nacos.dubbo-system.svc:8848?username=nacos&password=nacos
+
-Ddubbo.config-center.address=nacos://nacos.dubbo-system.svc:8848?username=nacos&password=nacos
+
-Ddubbo.metadata-report.address=nacos://nacos.dubbo-system.svc:8848?username=nacos&password=nacos
+ -Ddubbo.application.qos-anonymous-allow-commands=metrics"
- name: SW_AGENT_NAME
value: shop::shop-frontend
- name: SW_AGENT_COLLECTOR_BACKEND_SERVICES
@@ -280,7 +300,7 @@ metadata:
name: shop-order-v1
namespace: dubbo-demo
spec:
- replicas: 2
+ replicas: 1
selector:
matchLabels:
app: shop-order
@@ -290,6 +310,7 @@ spec:
labels:
app: shop-order
orderVersion: v1
+ app-type: dubbo
spec:
volumes:
- name: skywalking-agent
@@ -306,21 +327,26 @@ spec:
containers:
- name: shop-order
- image: apache/dubbo-demo:dubbo-samples-shop-order_v1_0.0.1
+ image:
registry.cn-hangzhou.aliyuncs.com/robocanic-public/shop-order:v1_0.0.1
imagePullPolicy: Always
ports:
- name: dubbo
containerPort: 20882
protocol: TCP
- name: dubbo-qos
- containerPort: 20992
+ containerPort: 22222
protocol: TCP
volumeMounts:
- name: skywalking-agent
mountPath: /skywalking
env:
- name: JAVA_TOOL_OPTIONS
- value: "-javaagent:/skywalking/agent/skywalking-agent.jar"
+ value: "-javaagent:/skywalking/agent/skywalking-agent.jar
+
-Ddubbo.registry.address=nacos://nacos.dubbo-system.svc:8848?username=nacos&password=nacos
+
-Ddubbo.config-center.address=nacos://nacos.dubbo-system.svc:8848?username=nacos&password=nacos
+
-Ddubbo.metadata-report.address=nacos://nacos.dubbo-system.svc:8848?username=nacos&password=nacos
+ -Ddubbo.application.qos-port=22222
-Ddubbo.application.qos-accept-foreign-ip=true
+ -Ddubbo.application.qos-anonymous-allow-commands=metrics"
- name: SW_AGENT_NAME
value: shop::shop-order
- name: SW_AGENT_COLLECTOR_BACKEND_SERVICES
@@ -336,7 +362,7 @@ metadata:
name: shop-order-v2
namespace: dubbo-demo
spec:
- replicas: 3
+ replicas: 1
selector:
matchLabels:
app: shop-order
@@ -346,6 +372,7 @@ spec:
labels:
app: shop-order
orderVersion: v2
+ app-type: dubbo
spec:
volumes:
- name: skywalking-agent
@@ -362,21 +389,26 @@ spec:
containers:
- name: shop-order
- image: apache/dubbo-demo:dubbo-samples-shop-order_v2_0.0.1
+ image:
registry.cn-hangzhou.aliyuncs.com/robocanic-public/shop-order:v2_0.0.1
imagePullPolicy: Always
ports:
- name: dubbo
containerPort: 20883
protocol: TCP
- name: dubbo-qos
- containerPort: 20993
+ containerPort: 22222
protocol: TCP
volumeMounts:
- name: skywalking-agent
mountPath: /skywalking
env:
- name: JAVA_TOOL_OPTIONS
- value: "-javaagent:/skywalking/agent/skywalking-agent.jar"
+ value: "-javaagent:/skywalking/agent/skywalking-agent.jar
+
-Ddubbo.registry.address=nacos://nacos.dubbo-system.svc:8848?username=nacos&password=nacos
+
-Ddubbo.config-center.address=nacos://nacos.dubbo-system.svc:8848?username=nacos&password=nacos
+
-Ddubbo.metadata-report.address=nacos://nacos.dubbo-system.svc:8848?username=nacos&password=nacos
+ -Ddubbo.application.qos-port=22222
-Ddubbo.application.qos-accept-foreign-ip=true
+ -Ddubbo.application.qos-anonymous-allow-commands=metrics"
- name: SW_AGENT_NAME
value: shop::shop-order
- name: SW_AGENT_COLLECTOR_BACKEND_SERVICES
@@ -392,7 +424,7 @@ metadata:
name: shop-user
namespace: dubbo-demo
spec:
- replicas: 3
+ replicas: 1
selector:
matchLabels:
app: shop-user
@@ -400,6 +432,7 @@ spec:
metadata:
labels:
app: shop-user
+ app-type: dubbo
spec:
volumes:
- name: skywalking-agent
@@ -416,21 +449,26 @@ spec:
containers:
- name: shop-user
- image: apache/dubbo-demo:dubbo-samples-shop-user_0.0.1
+ image:
registry.cn-hangzhou.aliyuncs.com/robocanic-public/shop-user:0.0.1
imagePullPolicy: Always
ports:
- name: dubbo
containerPort: 20884
protocol: TCP
- name: dubbo-qos
- containerPort: 20994
+ containerPort: 22222
protocol: TCP
volumeMounts:
- name: skywalking-agent
mountPath: /skywalking
env:
- name: JAVA_TOOL_OPTIONS
- value: "-javaagent:/skywalking/agent/skywalking-agent.jar"
+ value: "-javaagent:/skywalking/agent/skywalking-agent.jar
+
-Ddubbo.registry.address=nacos://nacos.dubbo-system.svc:8848?username=nacos&password=nacos
+
-Ddubbo.config-center.address=nacos://nacos.dubbo-system.svc:8848?username=nacos&password=nacos
+
-Ddubbo.metadata-report.address=nacos://nacos.dubbo-system.svc:8848?username=nacos&password=nacos
+ -Ddubbo.application.qos-port=22222
-Ddubbo.application.qos-accept-foreign-ip=true
+ -Ddubbo.application.qos-anonymous-allow-commands=metrics"
- name: SW_AGENT_NAME
value: shop::shop-user
- name: SW_AGENT_COLLECTOR_BACKEND_SERVICES
@@ -444,7 +482,7 @@ metadata:
name: shop-detail-v1
namespace: dubbo-demo
spec:
- replicas: 3
+ replicas: 1
selector:
matchLabels:
app: shop-detail
@@ -454,6 +492,7 @@ spec:
labels:
app: shop-detail
detailVersion: v1
+ app-type: dubbo
spec:
volumes:
- name: skywalking-agent
@@ -470,21 +509,27 @@ spec:
containers:
- name: shop-detail
- image: apache/dubbo-demo:dubbo-samples-shop-detail_0.0.1
+ image:
registry.cn-hangzhou.aliyuncs.com/robocanic-public/shop-detail:v1_0.0.1
imagePullPolicy: Always
ports:
- name: dubbo
containerPort: 20885
protocol: TCP
- name: dubbo-qos
- containerPort: 20995
+ containerPort: 22222
protocol: TCP
volumeMounts:
- name: skywalking-agent
mountPath: /skywalking
env:
- name: JAVA_TOOL_OPTIONS
- value: "-javaagent:/skywalking/agent/skywalking-agent.jar"
+ value: "-javaagent:/skywalking/agent/skywalking-agent.jar
+
-Ddubbo.registry.address=nacos://nacos.dubbo-system.svc:8848?username=nacos&password=nacos
+
-Ddubbo.config-center.address=nacos://nacos.dubbo-system.svc:8848?username=nacos&password=nacos
+
-Ddubbo.metadata-report.address=nacos://nacos.dubbo-system.svc:8848?username=nacos&password=nacos
+ -Ddubbo.application.qos-port=22222
+ -Ddubbo.application.qos-accept-foreign-ip=true
+ -Ddubbo.application.qos-anonymous-allow-commands=metrics"
- name: SW_AGENT_NAME
value: shop::shop-detail
- name: SW_AGENT_COLLECTOR_BACKEND_SERVICES
@@ -500,7 +545,7 @@ metadata:
name: shop-detail-v2
namespace: dubbo-demo
spec:
- replicas: 3
+ replicas: 1
selector:
matchLabels:
app: shop-detail
@@ -510,6 +555,7 @@ spec:
labels:
app: shop-detail
detailVersion: v2
+ app-type: dubbo
spec:
volumes:
- name: skywalking-agent
@@ -526,21 +572,27 @@ spec:
containers:
- name: shop-detail
- image: apache/dubbo-demo:dubbo-samples-shop-detail_v2_0.0.1
+ image:
registry.cn-hangzhou.aliyuncs.com/robocanic-public/shop-detail:v2_0.0.1
imagePullPolicy: Always
ports:
- name: dubbo
containerPort: 20886
protocol: TCP
- name: dubbo-qos
- containerPort: 20996
+ containerPort: 22222
protocol: TCP
volumeMounts:
- name: skywalking-agent
mountPath: /skywalking
env:
- name: JAVA_TOOL_OPTIONS
- value: "-javaagent:/skywalking/agent/skywalking-agent.jar"
+ value: "-javaagent:/skywalking/agent/skywalking-agent.jar
+
-Ddubbo.registry.address=nacos://nacos.dubbo-system.svc:8848?username=nacos&password=nacos
+
-Ddubbo.config-center.address=nacos://nacos.dubbo-system.svc:8848?username=nacos&password=nacos
+
-Ddubbo.metadata-report.address=nacos://nacos.dubbo-system.svc:8848?username=nacos&password=nacos
+ -Ddubbo.application.qos-port=22222
+ -Ddubbo.application.qos-accept-foreign-ip=true
+ -Ddubbo.application.qos-anonymous-allow-commands=metrics"
- name: SW_AGENT_NAME
value: shop::shop-detail
- name: SW_AGENT_COLLECTOR_BACKEND_SERVICES
@@ -556,7 +608,7 @@ metadata:
name: shop-comment-v1
namespace: dubbo-demo
spec:
- replicas: 3
+ replicas: 1
selector:
matchLabels:
app: shop-comment
@@ -566,6 +618,7 @@ spec:
labels:
app: shop-comment
commentVersion: v1
+ app-type: dubbo
spec:
volumes:
- name: skywalking-agent
@@ -582,21 +635,27 @@ spec:
containers:
- name: shop-comment
- image: apache/dubbo-demo:dubbo-samples-shop-comment_0.0.1
+ image:
registry.cn-hangzhou.aliyuncs.com/robocanic-public/shop-comment:v1_0.0.1
imagePullPolicy: Always
ports:
- name: dubbo
containerPort: 20887
protocol: TCP
- name: dubbo-qos
- containerPort: 20997
+ containerPort: 22222
protocol: TCP
volumeMounts:
- name: skywalking-agent
mountPath: /skywalking
env:
- name: JAVA_TOOL_OPTIONS
- value: "-javaagent:/skywalking/agent/skywalking-agent.jar"
+ value: "-javaagent:/skywalking/agent/skywalking-agent.jar
+
-Ddubbo.registry.address=nacos://nacos.dubbo-system.svc:8848?username=nacos&password=nacos
+
-Ddubbo.config-center.address=nacos://nacos.dubbo-system.svc:8848?username=nacos&password=nacos
+
-Ddubbo.metadata-report.address=nacos://nacos.dubbo-system.svc:8848?username=nacos&password=nacos
+ -Ddubbo.application.qos-port=22222
+ -Ddubbo.application.qos-accept-foreign-ip=true
+ -Ddubbo.application.qos-anonymous-allow-commands=metrics"
- name: SW_AGENT_NAME
value: shop::shop-comment
- name: SW_AGENT_COLLECTOR_BACKEND_SERVICES
@@ -612,7 +671,7 @@ metadata:
name: shop-comment-v2
namespace: dubbo-demo
spec:
- replicas: 3
+ replicas: 1
selector:
matchLabels:
app: shop-comment
@@ -622,6 +681,7 @@ spec:
labels:
app: shop-comment
commentVersion: v2
+ app-type: dubbo
spec:
volumes:
- name: skywalking-agent
@@ -638,25 +698,274 @@ spec:
containers:
- name: shop-comment
- image: apache/dubbo-demo:dubbo-samples-shop-comment_v2_0.0.1
+ image:
registry.cn-hangzhou.aliyuncs.com/robocanic-public/shop-comment:v2_0.0.1
imagePullPolicy: Always
ports:
- name: dubbo
containerPort: 20888
protocol: TCP
- name: dubbo-qos
- containerPort: 20998
+ containerPort: 22222
protocol: TCP
volumeMounts:
- name: skywalking-agent
mountPath: /skywalking
env:
- name: JAVA_TOOL_OPTIONS
- value: "-javaagent:/skywalking/agent/skywalking-agent.jar"
+ value: "-javaagent:/skywalking/agent/skywalking-agent.jar
+
-Ddubbo.registry.address=nacos://nacos.dubbo-system.svc:8848?username=nacos&password=nacos
+
-Ddubbo.config-center.address=nacos://nacos.dubbo-system.svc:8848?username=nacos&password=nacos
+
-Ddubbo.metadata-report.address=nacos://nacos.dubbo-system.svc:8848?username=nacos&password=nacos
+ -Ddubbo.application.qos-port=22222
+ -Ddubbo.application.qos-accept-foreign-ip=true
+ -Ddubbo.application.qos-anonymous-allow-commands=metrics"
- name: SW_AGENT_NAME
value: shop::shop-comment
- name: SW_AGENT_COLLECTOR_BACKEND_SERVICES
value: "skywalking-oap-server.dubbo-system.svc:11800"
- name: DUBBO_LABELS
value: "commentVersion=v2; region=hangzhou;"
+---
+apiVersion: apps/v1
+kind: Deployment
+metadata:
+ name: shop-user-gray
+ namespace: dubbo-demo
+spec:
+ replicas: 1
+ selector:
+ matchLabels:
+ app: shop-user
+ template:
+ metadata:
+ labels:
+ app: shop-user
+ app-type: dubbo
+ spec:
+ volumes:
+ - name: skywalking-agent
+ emptyDir: { }
+
+ initContainers:
+ - name: agent-container
+ image: apache/skywalking-java-agent:8.13.0-java17
+ volumeMounts:
+ - name: skywalking-agent
+ mountPath: /agent
+ command: [ "/bin/sh" ]
+ args: [ "-c", "cp -R /skywalking/agent /agent/" ]
+
+ containers:
+ - name: shop-user-gray
+ image:
registry.cn-hangzhou.aliyuncs.com/robocanic-public/shop-user:gray_0.0.1
+ imagePullPolicy: Always
+ ports:
+ - name: dubbo
+ containerPort: 20892
+ protocol: TCP
+ - name: dubbo-qos
+ containerPort: 22222
+ protocol: TCP
+ volumeMounts:
+ - name: skywalking-agent
+ mountPath: /skywalking
+ env:
+ - name: JAVA_TOOL_OPTIONS
+ value: "-javaagent:/skywalking/agent/skywalking-agent.jar
+
-Ddubbo.registry.address=nacos://nacos.dubbo-system.svc:8848?username=nacos&password=nacos
+
-Ddubbo.config-center.address=nacos://nacos.dubbo-system.svc:8848?username=nacos&password=nacos
+
-Ddubbo.metadata-report.address=nacos://nacos.dubbo-system.svc:8848?username=nacos&password=nacos
+ -Ddubbo.application.qos-port=22222
+ -Ddubbo.application.qos-accept-foreign-ip=true
+ -Ddubbo.application.qos-anonymous-allow-commands=metrics"
+ - name: SW_AGENT_NAME
+ value: shop::shop-user
+ - name: SW_AGENT_COLLECTOR_BACKEND_SERVICES
+ value: "skywalking-oap-server.dubbo-system.svc:11800"
+ - name: DUBBO_LABELS
+ value: "env=gray"
+---
+
+apiVersion: apps/v1
+kind: Deployment
+metadata:
+ name: shop-order-v1-gray
+ namespace: dubbo-demo
+spec:
+ replicas: 1
+ selector:
+ matchLabels:
+ app: shop-order
+ orderVersion: v1
+ template:
+ metadata:
+ labels:
+ app: shop-order
+ orderVersion: v1
+ app-type: dubbo
+ spec:
+ volumes:
+ - name: skywalking-agent
+ emptyDir: { }
+
+ initContainers:
+ - name: agent-container
+ image: apache/skywalking-java-agent:8.13.0-java17
+ volumeMounts:
+ - name: skywalking-agent
+ mountPath: /agent
+ command: [ "/bin/sh" ]
+ args: [ "-c", "cp -R /skywalking/agent /agent/" ]
+
+ containers:
+ - name: shop-order
+ image:
registry.cn-hangzhou.aliyuncs.com/robocanic-public/shop-order:gray_0.0.1
+ imagePullPolicy: Always
+ ports:
+ - name: dubbo
+ containerPort: 20891
+ protocol: TCP
+ - name: dubbo-qos
+ containerPort: 22222
+ protocol: TCP
+ volumeMounts:
+ - name: skywalking-agent
+ mountPath: /skywalking
+ env:
+ - name: JAVA_TOOL_OPTIONS
+ value: "-javaagent:/skywalking/agent/skywalking-agent.jar
+
-Ddubbo.registry.address=nacos://nacos.dubbo-system.svc:8848?username=nacos&password=nacos
+
-Ddubbo.config-center.address=nacos://nacos.dubbo-system.svc:8848?username=nacos&password=nacos
+
-Ddubbo.metadata-report.address=nacos://nacos.dubbo-system.svc:8848?username=nacos&password=nacos
+ -Ddubbo.application.qos-port=22222
+ -Ddubbo.application.qos-accept-foreign-ip=true
+ -Ddubbo.application.qos-anonymous-allow-commands=metrics"
+ - name: SW_AGENT_NAME
+ value: shop::shop-order
+ - name: SW_AGENT_COLLECTOR_BACKEND_SERVICES
+ value: "skywalking-oap-server.dubbo-system.svc:11800"
+ - name: DUBBO_LABELS
+ value: "env=gray"
+---
+apiVersion: apps/v1
+kind: Deployment
+metadata:
+ name: shop-detail-v1-gray
+ namespace: dubbo-demo
+spec:
+ replicas: 1
+ selector:
+ matchLabels:
+ app: shop-detail
+ detailVersion: v1
+ template:
+ metadata:
+ labels:
+ app: shop-detail
+ detailVersion: v1
+ app-type: dubbo
+ spec:
+ volumes:
+ - name: skywalking-agent
+ emptyDir: { }
+ initContainers:
+ - name: agent-container
+ image: apache/skywalking-java-agent:8.13.0-java17
+ volumeMounts:
+ - name: skywalking-agent
+ mountPath: /agent
+ command: [ "/bin/sh" ]
+ args: [ "-c", "cp -R /skywalking/agent /agent/" ]
+
+ containers:
+ - name: shop-detail
+ image:
registry.cn-hangzhou.aliyuncs.com/robocanic-public/shop-detail:gray_0.0.1
+ imagePullPolicy: Always
+ ports:
+ - name: dubbo
+ containerPort: 20890
+ protocol: TCP
+ - name: dubbo-qos
+ containerPort: 22222
+ protocol: TCP
+ volumeMounts:
+ - name: skywalking-agent
+ mountPath: /skywalking
+ env:
+ - name: JAVA_TOOL_OPTIONS
+ value: "-javaagent:/skywalking/agent/skywalking-agent.jar
+
-Ddubbo.registry.address=nacos://nacos.dubbo-system.svc:8848?username=nacos&password=nacos
+
-Ddubbo.config-center.address=nacos://nacos.dubbo-system.svc:8848?username=nacos&password=nacos
+
-Ddubbo.metadata-report.address=nacos://nacos.dubbo-system.svc:8848?username=nacos&password=nacos
+ -Ddubbo.application.qos-port=22222
+ -Ddubbo.application.qos-accept-foreign-ip=true
+ -Ddubbo.application.qos-anonymous-allow-commands=metrics"
+ - name: SW_AGENT_NAME
+ value: shop::shop-detail
+ - name: SW_AGENT_COLLECTOR_BACKEND_SERVICES
+ value: "skywalking-oap-server.dubbo-system.svc:11800"
+ - name: DUBBO_LABELS
+ value: "env=gray"
+---
+apiVersion: apps/v1
+kind: Deployment
+metadata:
+ name: shop-comment-v1-gray
+ namespace: dubbo-demo
+spec:
+ replicas: 1
+ selector:
+ matchLabels:
+ app: shop-comment
+ commentVersion: v1
+ template:
+ metadata:
+ labels:
+ app: shop-comment
+ commentVersion: v1
+ app-type: dubbo
+ spec:
+ volumes:
+ - name: skywalking-agent
+ emptyDir: { }
+
+ initContainers:
+ - name: agent-container
+ image: apache/skywalking-java-agent:8.13.0-java17
+ volumeMounts:
+ - name: skywalking-agent
+ mountPath: /agent
+ command: [ "/bin/sh" ]
+ args: [ "-c", "cp -R /skywalking/agent /agent/" ]
+
+ containers:
+ - name: shop-comment
+ image:
registry.cn-hangzhou.aliyuncs.com/robocanic-public/shop-comment:gray_0.0.1
+ imagePullPolicy: Always
+ ports:
+ - name: dubbo
+ containerPort: 20889
+ protocol: TCP
+ - name: dubbo-qos
+ containerPort: 22222
+ protocol: TCP
+ volumeMounts:
+ - name: skywalking-agent
+ mountPath: /skywalking
+ env:
+ - name: JAVA_TOOL_OPTIONS
+ value: "-javaagent:/skywalking/agent/skywalking-agent.jar
+
-Ddubbo.registry.address=nacos://nacos.dubbo-system.svc:8848?username=nacos&password=nacos
+
-Ddubbo.config-center.address=nacos://nacos.dubbo-system.svc:8848?username=nacos&password=nacos
+
-Ddubbo.metadata-report.address=nacos://nacos.dubbo-system.svc:8848?username=nacos&password=nacos
+ -Ddubbo.application.qos-port=22222
+ -Ddubbo.application.qos-accept-foreign-ip=true
+ -Ddubbo.application.qos-anonymous-allow-commands=metrics"
+ - name: SW_AGENT_NAME
+ value: shop::shop-comment
+ - name: SW_AGENT_COLLECTOR_BACKEND_SERVICES
+ value: "skywalking-oap-server.dubbo-system.svc:11800"
+ - name: DUBBO_LABELS
+ value: "env=gray"
+---
diff --git a/10-task/dubbo-samples-shop/deploy/Gray.yml
b/10-task/dubbo-samples-shop/deploy/Gray.yml
deleted file mode 100644
index 5f97c156b..000000000
--- a/10-task/dubbo-samples-shop/deploy/Gray.yml
+++ /dev/null
@@ -1,230 +0,0 @@
-# Licensed to the Apache Software Foundation (ASF) under one or more
-# contributor license agreements. See the NOTICE file distributed with
-# this work for additional information regarding copyright ownership.
-# The ASF licenses this file to You under the Apache License, Version 2.0
-# (the "License"); you may not use this file except in compliance with
-# the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-apiVersion: apps/v1
-kind: Deployment
-metadata:
- name: shop-user-gray
- namespace: dubbo-demo
-spec:
- replicas: 3
- selector:
- matchLabels:
- app: shop-user
- template:
- metadata:
- labels:
- app: shop-user
- spec:
- volumes:
- - name: skywalking-agent
- emptyDir: { }
-
- initContainers:
- - name: agent-container
- image: apache/skywalking-java-agent:8.13.0-java17
- volumeMounts:
- - name: skywalking-agent
- mountPath: /agent
- command: [ "/bin/sh" ]
- args: [ "-c", "cp -R /skywalking/agent /agent/" ]
-
- containers:
- - name: shop-user-gray
- image: apache/dubbo-demo:dubbo-samples-shop-user_gray_0.0.1
- imagePullPolicy: Always
- ports:
- - name: dubbo
- containerPort: 20892
- protocol: TCP
- - name: dubbo-qos
- containerPort: 21002
- protocol: TCP
- volumeMounts:
- - name: skywalking-agent
- mountPath: /skywalking
- env:
- - name: JAVA_TOOL_OPTIONS
- value: "-javaagent:/skywalking/agent/skywalking-agent.jar"
- - name: SW_AGENT_NAME
- value: shop::shop-user
- - name: SW_AGENT_COLLECTOR_BACKEND_SERVICES
- value: "skywalking-oap-server.dubbo-system.svc:11800"
- - name: DUBBO_LABELS
- value: "env=gray"
----
-
-apiVersion: apps/v1
-kind: Deployment
-metadata:
- name: shop-order-v1-gray
- namespace: dubbo-demo
-spec:
- replicas: 2
- selector:
- matchLabels:
- app: shop-order
- orderVersion: v1
- template:
- metadata:
- labels:
- app: shop-order
- orderVersion: v1
- spec:
- volumes:
- - name: skywalking-agent
- emptyDir: { }
-
- initContainers:
- - name: agent-container
- image: apache/skywalking-java-agent:8.13.0-java17
- volumeMounts:
- - name: skywalking-agent
- mountPath: /agent
- command: [ "/bin/sh" ]
- args: [ "-c", "cp -R /skywalking/agent /agent/" ]
-
- containers:
- - name: shop-order
- image: apache/dubbo-demo:dubbo-samples-shop-order_gray_0.0.1
- imagePullPolicy: Always
- ports:
- - name: dubbo
- containerPort: 20891
- protocol: TCP
- - name: dubbo-qos
- containerPort: 21001
- protocol: TCP
- volumeMounts:
- - name: skywalking-agent
- mountPath: /skywalking
- env:
- - name: JAVA_TOOL_OPTIONS
- value: "-javaagent:/skywalking/agent/skywalking-agent.jar"
- - name: SW_AGENT_NAME
- value: shop::shop-order
- - name: SW_AGENT_COLLECTOR_BACKEND_SERVICES
- value: "skywalking-oap-server.dubbo-system.svc:11800"
- - name: DUBBO_LABELS
- value: "env=gray"
----
-apiVersion: apps/v1
-kind: Deployment
-metadata:
- name: shop-detail-v1-gray
- namespace: dubbo-demo
-spec:
- replicas: 3
- selector:
- matchLabels:
- app: shop-detail
- detailVersion: v1
- template:
- metadata:
- labels:
- app: shop-detail
- detailVersion: v1
- spec:
- volumes:
- - name: skywalking-agent
- emptyDir: { }
-
- initContainers:
- - name: agent-container
- image: apache/skywalking-java-agent:8.13.0-java17
- volumeMounts:
- - name: skywalking-agent
- mountPath: /agent
- command: [ "/bin/sh" ]
- args: [ "-c", "cp -R /skywalking/agent /agent/" ]
-
- containers:
- - name: shop-detail
- image: apache/dubbo-demo:dubbo-samples-shop-detail_gray_0.0.1
- imagePullPolicy: Always
- ports:
- - name: dubbo
- containerPort: 20890
- protocol: TCP
- - name: dubbo-qos
- containerPort: 21000
- protocol: TCP
- volumeMounts:
- - name: skywalking-agent
- mountPath: /skywalking
- env:
- - name: JAVA_TOOL_OPTIONS
- value: "-javaagent:/skywalking/agent/skywalking-agent.jar"
- - name: SW_AGENT_NAME
- value: shop::shop-detail
- - name: SW_AGENT_COLLECTOR_BACKEND_SERVICES
- value: "skywalking-oap-server.dubbo-system.svc:11800"
- - name: DUBBO_LABELS
- value: "env=gray"
----
-apiVersion: apps/v1
-kind: Deployment
-metadata:
- name: shop-comment-v1-gray
- namespace: dubbo-demo
-spec:
- replicas: 3
- selector:
- matchLabels:
- app: shop-comment
- commentVersion: v1
- template:
- metadata:
- labels:
- app: shop-comment
- commentVersion: v1
- spec:
- volumes:
- - name: skywalking-agent
- emptyDir: { }
-
- initContainers:
- - name: agent-container
- image: apache/skywalking-java-agent:8.13.0-java17
- volumeMounts:
- - name: skywalking-agent
- mountPath: /agent
- command: [ "/bin/sh" ]
- args: [ "-c", "cp -R /skywalking/agent /agent/" ]
-
- containers:
- - name: shop-comment
- image: apache/dubbo-demo:dubbo-samples-shop-comment_gray_0.0.1
- imagePullPolicy: Always
- ports:
- - name: dubbo
- containerPort: 20889
- protocol: TCP
- - name: dubbo-qos
- containerPort: 20999
- protocol: TCP
- volumeMounts:
- - name: skywalking-agent
- mountPath: /skywalking
- env:
- - name: JAVA_TOOL_OPTIONS
- value: "-javaagent:/skywalking/agent/skywalking-agent.jar"
- - name: SW_AGENT_NAME
- value: shop::shop-comment
- - name: SW_AGENT_COLLECTOR_BACKEND_SERVICES
- value: "skywalking-oap-server.dubbo-system.svc:11800"
- - name: DUBBO_LABELS
- value: "env=gray"
----
\ No newline at end of file
diff --git a/10-task/dubbo-samples-shop/deploy/Namespace.yml
b/10-task/dubbo-samples-shop/deploy/Namespace.yml
deleted file mode 100644
index 20d311f10..000000000
--- a/10-task/dubbo-samples-shop/deploy/Namespace.yml
+++ /dev/null
@@ -1,25 +0,0 @@
-# Licensed to the Apache Software Foundation (ASF) under one or more
-# contributor license agreements. See the NOTICE file distributed with
-# this work for additional information regarding copyright ownership.
-# The ASF licenses this file to You under the Apache License, Version 2.0
-# (the "License"); you may not use this file except in compliance with
-# the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-apiVersion: v1
-kind: Namespace
-metadata:
- name: dubbo-demo
----
-
-apiVersion: v1
-kind: Namespace
-metadata:
- name: dubbo-system
\ No newline at end of file
diff --git a/10-task/dubbo-samples-shop/deploy/comment-v1-gray/Deployment.yml
b/10-task/dubbo-samples-shop/deploy/comment-v1-gray/Deployment.yml
index 0e6425e8e..462bc0daa 100644
--- a/10-task/dubbo-samples-shop/deploy/comment-v1-gray/Deployment.yml
+++ b/10-task/dubbo-samples-shop/deploy/comment-v1-gray/Deployment.yml
@@ -19,7 +19,7 @@ metadata:
name: shop-comment-v1-gray
namespace: dubbo-demo
spec:
- replicas: 3
+ replicas: 1
selector:
matchLabels:
app: shop-comment
@@ -29,40 +29,35 @@ spec:
labels:
app: shop-comment
commentVersion: v1
+ app-type: dubbo
spec:
- volumes:
- - name: skywalking-agent
- emptyDir: { }
-
- initContainers:
- - name: agent-container
- image: apache/skywalking-java-agent:8.13.0-java17
- volumeMounts:
- - name: skywalking-agent
- mountPath: /agent
- command: [ "/bin/sh" ]
- args: [ "-c", "cp -R /skywalking/agent /agent/" ]
-
containers:
- name: shop-comment
- image: apache/dubbo-demo:dubbo-samples-shop-comment_gray_0.0.1
+ image: apache/dubbo-demo:dubbo-demo-comment_gray_0.0.2
imagePullPolicy: Always
ports:
- name: dubbo
containerPort: 20889
protocol: TCP
- name: dubbo-qos
- containerPort: 20999
+ containerPort: 22222
protocol: TCP
- volumeMounts:
- - name: skywalking-agent
- mountPath: /skywalking
env:
- name: JAVA_TOOL_OPTIONS
- value: "-javaagent:/skywalking/agent/skywalking-agent.jar"
- - name: SW_AGENT_NAME
- value: shop::shop-comment
- - name: SW_AGENT_COLLECTOR_BACKEND_SERVICES
- value: "skywalking-oap-server.dubbo-system.svc:11800"
+ value:
+
-Ddubbo.registry.address=nacos://nacos.dubbo-system.svc:8848?username=nacos&password=nacos
+
-Ddubbo.config-center.address=nacos://nacos.dubbo-system.svc:8848?username=nacos&password=nacos
+
-Ddubbo.metadata-report.address=nacos://nacos.dubbo-system.svc:8848?username=nacos&password=nacos
+ -Ddubbo.application.metadata-type=remote
+ -Ddubbo.application.qos-port=22222
+ -Ddubbo.application.qos-anonymous-allow-commands=metrics
+ -Ddubbo.metrics.histogram.enabled=true
+ -Ddubbo.metrics.histogram.enabled-percentiles=true
+ -Ddubbo.metrics.enable-threadpool=true
+ -Ddubbo.metrics.enable-registry=true
+ -Ddubbo.metrics.enable-metadata=true
+ -Ddubbo.metrics.aggregation.enabled=true
+ -Ddubbo.tracing.enabled=true
+
-Ddubbo.tracing.tracing-exporter.otlp-config.endpoint=http://jaeger.dubbo-system.svc:4317
- name: DUBBO_LABELS
value: "env=gray"
\ No newline at end of file
diff --git a/10-task/dubbo-samples-shop/deploy/comment-v1/Deployment.yml
b/10-task/dubbo-samples-shop/deploy/comment-v1/Deployment.yml
index 54d551e81..10c470cfa 100644
--- a/10-task/dubbo-samples-shop/deploy/comment-v1/Deployment.yml
+++ b/10-task/dubbo-samples-shop/deploy/comment-v1/Deployment.yml
@@ -19,7 +19,7 @@ metadata:
name: shop-comment-v1
namespace: dubbo-demo
spec:
- replicas: 3
+ replicas: 1
selector:
matchLabels:
app: shop-comment
@@ -29,40 +29,35 @@ spec:
labels:
app: shop-comment
commentVersion: v1
+ app-type: dubbo
spec:
- volumes:
- - name: skywalking-agent
- emptyDir: { }
-
- initContainers:
- - name: agent-container
- image: apache/skywalking-java-agent:8.13.0-java17
- volumeMounts:
- - name: skywalking-agent
- mountPath: /agent
- command: [ "/bin/sh" ]
- args: [ "-c", "cp -R /skywalking/agent /agent/" ]
-
containers:
- name: shop-comment
- image: apache/dubbo-demo:dubbo-samples-shop-comment_0.0.1
+ image: apache/dubbo-demo:dubbo-demo-comment_0.0.2
imagePullPolicy: Always
ports:
- name: dubbo
containerPort: 20887
protocol: TCP
- name: dubbo-qos
- containerPort: 20997
+ containerPort: 22222
protocol: TCP
- volumeMounts:
- - name: skywalking-agent
- mountPath: /skywalking
env:
- name: JAVA_TOOL_OPTIONS
- value: "-javaagent:/skywalking/agent/skywalking-agent.jar"
- - name: SW_AGENT_NAME
- value: shop::shop-comment
- - name: SW_AGENT_COLLECTOR_BACKEND_SERVICES
- value: "skywalking-oap-server.dubbo-system.svc:11800"
+ value:
+
-Ddubbo.registry.address=nacos://nacos.dubbo-system.svc:8848?username=nacos&password=nacos
+
-Ddubbo.config-center.address=nacos://nacos.dubbo-system.svc:8848?username=nacos&password=nacos
+
-Ddubbo.metadata-report.address=nacos://nacos.dubbo-system.svc:8848?username=nacos&password=nacos
+ -Ddubbo.application.metadata-type=remote
+ -Ddubbo.application.qos-port=22222
+ -Ddubbo.application.qos-anonymous-allow-commands=metrics
+ -Ddubbo.metrics.histogram.enabled=true
+ -Ddubbo.metrics.histogram.enabled-percentiles=true
+ -Ddubbo.metrics.enable-threadpool=true
+ -Ddubbo.metrics.enable-registry=true
+ -Ddubbo.metrics.enable-metadata=true
+ -Ddubbo.metrics.aggregation.enabled=true
+ -Ddubbo.tracing.enabled=true
+
-Ddubbo.tracing.tracing-exporter.otlp-config.endpoint=http://jaeger.dubbo-system.svc:4317
- name: DUBBO_LABELS
value: "commentVersion=v1; region=beijing"
\ No newline at end of file
diff --git a/10-task/dubbo-samples-shop/deploy/comment-v2/Deployment.yml
b/10-task/dubbo-samples-shop/deploy/comment-v2/Deployment.yml
index 566a77b04..b5c077db6 100644
--- a/10-task/dubbo-samples-shop/deploy/comment-v2/Deployment.yml
+++ b/10-task/dubbo-samples-shop/deploy/comment-v2/Deployment.yml
@@ -19,7 +19,7 @@ metadata:
name: shop-comment-v2
namespace: dubbo-demo
spec:
- replicas: 3
+ replicas: 1
selector:
matchLabels:
app: shop-comment
@@ -29,40 +29,35 @@ spec:
labels:
app: shop-comment
commentVersion: v2
+ app-type: dubbo
spec:
- volumes:
- - name: skywalking-agent
- emptyDir: { }
-
- initContainers:
- - name: agent-container
- image: apache/skywalking-java-agent:8.13.0-java17
- volumeMounts:
- - name: skywalking-agent
- mountPath: /agent
- command: [ "/bin/sh" ]
- args: [ "-c", "cp -R /skywalking/agent /agent/" ]
-
containers:
- name: shop-comment
- image: apache/dubbo-demo:dubbo-samples-shop-comment_v2_0.0.1
+ image: apache/dubbo-demo:dubbo-demo-comment_v2_0.0.2
imagePullPolicy: Always
ports:
- name: dubbo
containerPort: 20888
protocol: TCP
- name: dubbo-qos
- containerPort: 20998
+ containerPort: 22222
protocol: TCP
- volumeMounts:
- - name: skywalking-agent
- mountPath: /skywalking
env:
- name: JAVA_TOOL_OPTIONS
- value: "-javaagent:/skywalking/agent/skywalking-agent.jar"
- - name: SW_AGENT_NAME
- value: shop::shop-comment
- - name: SW_AGENT_COLLECTOR_BACKEND_SERVICES
- value: "skywalking-oap-server.dubbo-system.svc:11800"
+ value:
+
-Ddubbo.registry.address=nacos://nacos.dubbo-system.svc:8848?username=nacos&password=nacos
+
-Ddubbo.config-center.address=nacos://nacos.dubbo-system.svc:8848?username=nacos&password=nacos
+
-Ddubbo.metadata-report.address=nacos://nacos.dubbo-system.svc:8848?username=nacos&password=nacos
+ -Ddubbo.application.metadata-type=remote
+ -Ddubbo.application.qos-port=22222
+ -Ddubbo.application.qos-anonymous-allow-commands=metrics
+ -Ddubbo.metrics.histogram.enabled=true
+ -Ddubbo.metrics.histogram.enabled-percentiles=true
+ -Ddubbo.metrics.enable-threadpool=true
+ -Ddubbo.metrics.enable-registry=true
+ -Ddubbo.metrics.enable-metadata=true
+ -Ddubbo.metrics.aggregation.enabled=true
+ -Ddubbo.tracing.enabled=true
+
-Ddubbo.tracing.tracing-exporter.otlp-config.endpoint=http://jaeger.dubbo-system.svc:4317
- name: DUBBO_LABELS
value: "commentVersion=v2; region=hangzhou;"
\ No newline at end of file
diff --git a/10-task/dubbo-samples-shop/deploy/detail-v1-gray/Deployment.yml
b/10-task/dubbo-samples-shop/deploy/detail-v1-gray/Deployment.yml
index 6895a4b3f..7692ebdb9 100644
--- a/10-task/dubbo-samples-shop/deploy/detail-v1-gray/Deployment.yml
+++ b/10-task/dubbo-samples-shop/deploy/detail-v1-gray/Deployment.yml
@@ -19,7 +19,7 @@ metadata:
name: shop-detail-v1-gray
namespace: dubbo-demo
spec:
- replicas: 3
+ replicas: 1
selector:
matchLabels:
app: shop-detail
@@ -29,40 +29,35 @@ spec:
labels:
app: shop-detail
detailVersion: v1
+ app-type: dubbo
spec:
- volumes:
- - name: skywalking-agent
- emptyDir: { }
-
- initContainers:
- - name: agent-container
- image: apache/skywalking-java-agent:8.13.0-java17
- volumeMounts:
- - name: skywalking-agent
- mountPath: /agent
- command: [ "/bin/sh" ]
- args: [ "-c", "cp -R /skywalking/agent /agent/" ]
-
containers:
- name: shop-detail
- image: apache/dubbo-demo:dubbo-samples-shop-detail_gray_0.0.1
+ image: apache/dubbo-demo:dubbo-demo-detail_gray_0.0.2
imagePullPolicy: Always
ports:
- name: dubbo
containerPort: 20890
protocol: TCP
- name: dubbo-qos
- containerPort: 21000
+ containerPort: 22222
protocol: TCP
- volumeMounts:
- - name: skywalking-agent
- mountPath: /skywalking
env:
- name: JAVA_TOOL_OPTIONS
- value: "-javaagent:/skywalking/agent/skywalking-agent.jar"
- - name: SW_AGENT_NAME
- value: shop::shop-detail
- - name: SW_AGENT_COLLECTOR_BACKEND_SERVICES
- value: "skywalking-oap-server.dubbo-system.svc:11800"
+ value:
+
-Ddubbo.registry.address=nacos://nacos.dubbo-system.svc:8848?username=nacos&password=nacos
+
-Ddubbo.config-center.address=nacos://nacos.dubbo-system.svc:8848?username=nacos&password=nacos
+
-Ddubbo.metadata-report.address=nacos://nacos.dubbo-system.svc:8848?username=nacos&password=nacos
+ -Ddubbo.application.metadata-type=remote
+ -Ddubbo.application.qos-port=22222
+ -Ddubbo.application.qos-anonymous-allow-commands=metrics
+ -Ddubbo.metrics.histogram.enabled=true
+ -Ddubbo.metrics.histogram.enabled-percentiles=true
+ -Ddubbo.metrics.enable-threadpool=true
+ -Ddubbo.metrics.enable-registry=true
+ -Ddubbo.metrics.enable-metadata=true
+ -Ddubbo.metrics.aggregation.enabled=true
+ -Ddubbo.tracing.enabled=true
+
-Ddubbo.tracing.tracing-exporter.otlp-config.endpoint=http://jaeger.dubbo-system.svc:4317
- name: DUBBO_LABELS
value: "env=gray"
\ No newline at end of file
diff --git a/10-task/dubbo-samples-shop/deploy/detail-v1/Deployment.yml
b/10-task/dubbo-samples-shop/deploy/detail-v1/Deployment.yml
index 4efa357b9..9bad8a05e 100644
--- a/10-task/dubbo-samples-shop/deploy/detail-v1/Deployment.yml
+++ b/10-task/dubbo-samples-shop/deploy/detail-v1/Deployment.yml
@@ -19,7 +19,7 @@ metadata:
name: shop-detail-v1
namespace: dubbo-demo
spec:
- replicas: 3
+ replicas: 1
selector:
matchLabels:
app: shop-detail
@@ -29,40 +29,35 @@ spec:
labels:
app: shop-detail
detailVersion: v1
+ app-type: dubbo
spec:
- volumes:
- - name: skywalking-agent
- emptyDir: { }
-
- initContainers:
- - name: agent-container
- image: apache/skywalking-java-agent:8.13.0-java17
- volumeMounts:
- - name: skywalking-agent
- mountPath: /agent
- command: [ "/bin/sh" ]
- args: [ "-c", "cp -R /skywalking/agent /agent/" ]
-
containers:
- name: shop-detail
- image: apache/dubbo-demo:dubbo-samples-shop-detail_0.0.1
+ image: apache/dubbo-demo:dubbo-demo-detail_0.0.2
imagePullPolicy: Always
ports:
- name: dubbo
containerPort: 20885
protocol: TCP
- name: dubbo-qos
- containerPort: 20995
+ containerPort: 22222
protocol: TCP
- volumeMounts:
- - name: skywalking-agent
- mountPath: /skywalking
env:
- name: JAVA_TOOL_OPTIONS
- value: "-javaagent:/skywalking/agent/skywalking-agent.jar"
- - name: SW_AGENT_NAME
- value: shop::shop-detail
- - name: SW_AGENT_COLLECTOR_BACKEND_SERVICES
- value: "skywalking-oap-server.dubbo-system.svc:11800"
+ value: >-
+
-Ddubbo.registry.address=nacos://nacos.dubbo-system.svc:8848?username=nacos&password=nacos
+
-Ddubbo.config-center.address=nacos://nacos.dubbo-system.svc:8848?username=nacos&password=nacos
+
-Ddubbo.metadata-report.address=nacos://nacos.dubbo-system.svc:8848?username=nacos&password=nacos
+ -Ddubbo.application.metadata-type=remote
+ -Ddubbo.application.qos-port=22222
+ -Ddubbo.application.qos-anonymous-allow-commands=metrics
+ -Ddubbo.metrics.histogram.enabled=true
+ -Ddubbo.metrics.histogram.enabled-percentiles=true
+ -Ddubbo.metrics.enable-threadpool=true
+ -Ddubbo.metrics.enable-registry=true
+ -Ddubbo.metrics.enable-metadata=true
+ -Ddubbo.metrics.aggregation.enabled=true
+ -Ddubbo.tracing.enabled=true
+
-Ddubbo.tracing.tracing-exporter.otlp-config.endpoint=http://jaeger.dubbo-system.svc:4317
- name: DUBBO_LABELS
value: "detailVersion=v1; region=beijing"
\ No newline at end of file
diff --git a/10-task/dubbo-samples-shop/deploy/detail-v2/Deployment.yml
b/10-task/dubbo-samples-shop/deploy/detail-v2/Deployment.yml
index ed7df3a1a..e92665724 100644
--- a/10-task/dubbo-samples-shop/deploy/detail-v2/Deployment.yml
+++ b/10-task/dubbo-samples-shop/deploy/detail-v2/Deployment.yml
@@ -19,7 +19,7 @@ metadata:
name: shop-detail-v2
namespace: dubbo-demo
spec:
- replicas: 3
+ replicas: 1
selector:
matchLabels:
app: shop-detail
@@ -29,40 +29,35 @@ spec:
labels:
app: shop-detail
detailVersion: v2
+ app-type: dubbo
spec:
- volumes:
- - name: skywalking-agent
- emptyDir: { }
-
- initContainers:
- - name: agent-container
- image: apache/skywalking-java-agent:8.13.0-java17
- volumeMounts:
- - name: skywalking-agent
- mountPath: /agent
- command: [ "/bin/sh" ]
- args: [ "-c", "cp -R /skywalking/agent /agent/" ]
-
containers:
- name: shop-detail
- image: apache/dubbo-demo:dubbo-samples-shop-detail_v2_0.0.1
+ image: apache/dubbo-demo:dubbo-demo-detail_v2_0.0.2
imagePullPolicy: Always
ports:
- name: dubbo
containerPort: 20886
protocol: TCP
- name: dubbo-qos
- containerPort: 20996
+ containerPort: 22222
protocol: TCP
- volumeMounts:
- - name: skywalking-agent
- mountPath: /skywalking
env:
- name: JAVA_TOOL_OPTIONS
- value: "-javaagent:/skywalking/agent/skywalking-agent.jar"
- - name: SW_AGENT_NAME
- value: shop::shop-detail
- - name: SW_AGENT_COLLECTOR_BACKEND_SERVICES
- value: "skywalking-oap-server.dubbo-system.svc:11800"
+ value:
+
-Ddubbo.registry.address=nacos://nacos.dubbo-system.svc:8848?username=nacos&password=nacos
+
-Ddubbo.config-center.address=nacos://nacos.dubbo-system.svc:8848?username=nacos&password=nacos
+
-Ddubbo.metadata-report.address=nacos://nacos.dubbo-system.svc:8848?username=nacos&password=nacos
+ -Ddubbo.application.metadata-type=remote
+ -Ddubbo.application.qos-port=22222
+ -Ddubbo.application.qos-anonymous-allow-commands=metrics
+ -Ddubbo.metrics.histogram.enabled=true
+ -Ddubbo.metrics.histogram.enabled-percentiles=true
+ -Ddubbo.metrics.enable-threadpool=true
+ -Ddubbo.metrics.enable-registry=true
+ -Ddubbo.metrics.enable-metadata=true
+ -Ddubbo.metrics.aggregation.enabled=true
+ -Ddubbo.tracing.enabled=true
+
-Ddubbo.tracing.tracing-exporter.otlp-config.endpoint=http://jaeger.dubbo-system.svc:4317
- name: DUBBO_LABELS
value: "detailVersion=v2; region=hangzhou;"
\ No newline at end of file
diff --git a/10-task/dubbo-samples-shop/deploy/dubbo-samples-shop-all.yaml
b/10-task/dubbo-samples-shop/deploy/dubbo-samples-shop-all.yaml
new file mode 100644
index 000000000..3bb390850
--- /dev/null
+++ b/10-task/dubbo-samples-shop/deploy/dubbo-samples-shop-all.yaml
@@ -0,0 +1,644 @@
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+# Namespace
+apiVersion: v1
+kind: Namespace
+metadata:
+ name: dubbo-demo
+
+---
+# QOS Service
+apiVersion: v1
+kind: Service
+metadata:
+ name: dubbo-qos
+ namespace: dubbo-demo
+ labels:
+ org.apache.dubbo/service: dubbo-qos
+spec:
+ type: ClusterIP
+ sessionAffinity: None
+ selector:
+ app-type: dubbo
+ ports:
+ - port: 22222
+ name: dubbo-qos
+ targetPort: 22222
+
+---
+# App FrontEnd Service
+apiVersion: v1
+kind: Service
+metadata:
+ name: shop-frontend
+ namespace: dubbo-demo
+spec:
+ type: ClusterIP
+ sessionAffinity: None
+ selector:
+ app: shop-frontend
+ ports:
+ - port: 8080
+ name: web
+ targetPort: 8080
+
+---
+# App FrontEnd
+apiVersion: apps/v1
+kind: Deployment
+metadata:
+ name: shop-frontend
+ namespace: dubbo-demo
+spec:
+ replicas: 1
+ selector:
+ matchLabels:
+ app: shop-frontend
+ template:
+ metadata:
+ labels:
+ app: shop-frontend
+ app-type: dubbo
+ spec:
+ containers:
+ - name: shop-frontend
+ image: apache/dubbo-demo:dubbo-demo-frontend_0.0.2
+ imagePullPolicy: Always
+ ports:
+ - name: dubbo
+ containerPort: 20881
+ protocol: TCP
+ - name: dubbo-qos
+ containerPort: 22222
+ protocol: TCP
+ env:
+ - name: JAVA_TOOL_OPTIONS
+ value: >-
+
-Ddubbo.registry.address=nacos://nacos.dubbo-system.svc:8848?username=nacos&password=nacos
+
-Ddubbo.config-center.address=nacos://nacos.dubbo-system.svc:8848?username=nacos&password=nacos
+
-Ddubbo.metadata-report.address=nacos://nacos.dubbo-system.svc:8848?username=nacos&password=nacos
+ -Ddubbo.application.metadata-type=remote
+ -Ddubbo.application.qos-port=22222
+ -Ddubbo.application.qos-anonymous-allow-commands=metrics
+ -Ddubbo.metrics.histogram.enabled=true
+ -Ddubbo.metrics.histogram.enabled-percentiles=true
+ -Ddubbo.metrics.enable-threadpool=true
+ -Ddubbo.metrics.enable-registry=true
+ -Ddubbo.metrics.enable-metadata=true
+ -Ddubbo.metrics.aggregation.enabled=true
+ -Ddubbo.tracing.enabled=true
+
-Ddubbo.tracing.tracing-exporter.otlp-config.endpoint=http://jaeger.dubbo-system.svc:4317
+---
+# App Order V1-1
+apiVersion: apps/v1
+kind: Deployment
+metadata:
+ name: shop-order-v1
+ namespace: dubbo-demo
+spec:
+ replicas: 1
+ selector:
+ matchLabels:
+ app: shop-order
+ orderVersion: v1
+ template:
+ metadata:
+ labels:
+ app: shop-order
+ orderVersion: v1
+ app-type: dubbo
+ spec:
+ containers:
+ - name: shop-order
+ image: apache/dubbo-demo:dubbo-demo-order_v1_0.0.2
+ imagePullPolicy: Always
+ ports:
+ - name: dubbo
+ containerPort: 20882
+ protocol: TCP
+ - name: dubbo-qos
+ containerPort: 22222
+ protocol: TCP
+ env:
+ - name: JAVA_TOOL_OPTIONS
+ value: >-
+
-Ddubbo.registry.address=nacos://nacos.dubbo-system.svc:8848?username=nacos&password=nacos
+
-Ddubbo.config-center.address=nacos://nacos.dubbo-system.svc:8848?username=nacos&password=nacos
+
-Ddubbo.metadata-report.address=nacos://nacos.dubbo-system.svc:8848?username=nacos&password=nacos
+ -Ddubbo.application.metadata-type=remote
+ -Ddubbo.application.qos-port=22222
+ -Ddubbo.application.qos-anonymous-allow-commands=metrics
+ -Ddubbo.metrics.histogram.enabled=true
+ -Ddubbo.metrics.histogram.enabled-percentiles=true
+ -Ddubbo.metrics.enable-threadpool=true
+ -Ddubbo.metrics.enable-registry=true
+ -Ddubbo.metrics.enable-metadata=true
+ -Ddubbo.metrics.aggregation.enabled=true
+ -Ddubbo.tracing.enabled=true
+
-Ddubbo.tracing.tracing-exporter.otlp-config.endpoint=http://jaeger.dubbo-system.svc:4317
+ - name: DUBBO_LABELS
+ value: "orderVersion=v1"
+---
+# App Order V2
+apiVersion: apps/v1
+kind: Deployment
+metadata:
+ name: shop-order-v2
+ namespace: dubbo-demo
+spec:
+ replicas: 1
+ selector:
+ matchLabels:
+ app: shop-order
+ orderVersion: v2
+ template:
+ metadata:
+ labels:
+ app: shop-order
+ orderVersion: v2
+ app-type: dubbo
+ spec:
+ containers:
+ - name: shop-order
+ image: apache/dubbo-demo:dubbo-demo-order_v2_0.0.2
+ imagePullPolicy: Always
+ ports:
+ - name: dubbo
+ containerPort: 20883
+ protocol: TCP
+ - name: dubbo-qos
+ containerPort: 22222
+ protocol: TCP
+ env:
+ - name: JAVA_TOOL_OPTIONS
+ value: >-
+
-Ddubbo.registry.address=nacos://nacos.dubbo-system.svc:8848?username=nacos&password=nacos
+
-Ddubbo.config-center.address=nacos://nacos.dubbo-system.svc:8848?username=nacos&password=nacos
+
-Ddubbo.metadata-report.address=nacos://nacos.dubbo-system.svc:8848?username=nacos&password=nacos
+ -Ddubbo.application.metadata-type=remote
+ -Ddubbo.application.qos-port=22222
+ -Ddubbo.application.qos-anonymous-allow-commands=metrics
+ -Ddubbo.metrics.histogram.enabled=true
+ -Ddubbo.metrics.histogram.enabled-percentiles=true
+ -Ddubbo.metrics.enable-threadpool=true
+ -Ddubbo.metrics.enable-registry=true
+ -Ddubbo.metrics.enable-metadata=true
+ -Ddubbo.metrics.aggregation.enabled=true
+ -Ddubbo.tracing.enabled=true
+
-Ddubbo.tracing.tracing-exporter.otlp-config.endpoint=http://jaeger.dubbo-system.svc:4317
+ - name: DUBBO_LABELS
+ value: "orderVersion=v2;"
+---
+# App User
+apiVersion: apps/v1
+kind: Deployment
+metadata:
+ name: shop-user
+ namespace: dubbo-demo
+spec:
+ replicas: 1
+ selector:
+ matchLabels:
+ app: shop-user
+ template:
+ metadata:
+ labels:
+ app: shop-user
+ app-type: dubbo
+ spec:
+ containers:
+ - name: shop-user
+ image: apache/dubbo-demo:dubbo-demo-user_0.0.2
+ imagePullPolicy: Always
+ ports:
+ - name: dubbo
+ containerPort: 20884
+ protocol: TCP
+ - name: dubbo-qos
+ containerPort: 22222
+ protocol: TCP
+ env:
+ - name: JAVA_TOOL_OPTIONS
+ value:
+
-Ddubbo.registry.address=nacos://nacos.dubbo-system.svc:8848?username=nacos&password=nacos
+
-Ddubbo.config-center.address=nacos://nacos.dubbo-system.svc:8848?username=nacos&password=nacos
+
-Ddubbo.metadata-report.address=nacos://nacos.dubbo-system.svc:8848?username=nacos&password=nacos
+ -Ddubbo.application.metadata-type=remote
+ -Ddubbo.application.qos-port=22222
+ -Ddubbo.application.qos-anonymous-allow-commands=metrics
+ -Ddubbo.metrics.histogram.enabled=true
+ -Ddubbo.metrics.histogram.enabled-percentiles=true
+ -Ddubbo.metrics.enable-threadpool=true
+ -Ddubbo.metrics.enable-registry=true
+ -Ddubbo.metrics.enable-metadata=true
+ -Ddubbo.metrics.aggregation.enabled=true
+ -Ddubbo.tracing.enabled=true
+
-Ddubbo.tracing.tracing-exporter.otlp-config.endpoint=http://jaeger.dubbo-system.svc:4317
+
+---
+# App Detail-1
+apiVersion: apps/v1
+kind: Deployment
+metadata:
+ name: shop-detail-v1
+ namespace: dubbo-demo
+spec:
+ replicas: 1
+ selector:
+ matchLabels:
+ app: shop-detail
+ detailVersion: v1
+ template:
+ metadata:
+ labels:
+ app: shop-detail
+ detailVersion: v1
+ app-type: dubbo
+ spec:
+ containers:
+ - name: shop-detail
+ image: apache/dubbo-demo:dubbo-demo-detail_0.0.2
+ imagePullPolicy: Always
+ ports:
+ - name: dubbo
+ containerPort: 20885
+ protocol: TCP
+ - name: dubbo-qos
+ containerPort: 22222
+ protocol: TCP
+ env:
+ - name: JAVA_TOOL_OPTIONS
+ value: >-
+
-Ddubbo.registry.address=nacos://nacos.dubbo-system.svc:8848?username=nacos&password=nacos
+
-Ddubbo.config-center.address=nacos://nacos.dubbo-system.svc:8848?username=nacos&password=nacos
+
-Ddubbo.metadata-report.address=nacos://nacos.dubbo-system.svc:8848?username=nacos&password=nacos
+ -Ddubbo.application.metadata-type=remote
+ -Ddubbo.application.qos-port=22222
+ -Ddubbo.application.qos-anonymous-allow-commands=metrics
+ -Ddubbo.metrics.histogram.enabled=true
+ -Ddubbo.metrics.histogram.enabled-percentiles=true
+ -Ddubbo.metrics.enable-threadpool=true
+ -Ddubbo.metrics.enable-registry=true
+ -Ddubbo.metrics.enable-metadata=true
+ -Ddubbo.metrics.aggregation.enabled=true
+ -Ddubbo.tracing.enabled=true
+
-Ddubbo.tracing.tracing-exporter.otlp-config.endpoint=http://jaeger.dubbo-system.svc:4317
+ - name: DUBBO_LABELS
+ value: "detailVersion=v1; region=beijing"
+---
+# App Detail-2
+apiVersion: apps/v1
+kind: Deployment
+metadata:
+ name: shop-detail-v2
+ namespace: dubbo-demo
+spec:
+ replicas: 1
+ selector:
+ matchLabels:
+ app: shop-detail
+ detailVersion: v2
+ template:
+ metadata:
+ labels:
+ app: shop-detail
+ detailVersion: v2
+ app-type: dubbo
+ spec:
+ containers:
+ - name: shop-detail
+ image: apache/dubbo-demo:dubbo-demo-detail_v2_0.0.2
+ imagePullPolicy: Always
+ ports:
+ - name: dubbo
+ containerPort: 20886
+ protocol: TCP
+ - name: dubbo-qos
+ containerPort: 22222
+ protocol: TCP
+ env:
+ - name: JAVA_TOOL_OPTIONS
+ value:
+
-Ddubbo.registry.address=nacos://nacos.dubbo-system.svc:8848?username=nacos&password=nacos
+
-Ddubbo.config-center.address=nacos://nacos.dubbo-system.svc:8848?username=nacos&password=nacos
+
-Ddubbo.metadata-report.address=nacos://nacos.dubbo-system.svc:8848?username=nacos&password=nacos
+ -Ddubbo.application.metadata-type=remote
+ -Ddubbo.application.qos-port=22222
+ -Ddubbo.application.qos-anonymous-allow-commands=metrics
+ -Ddubbo.metrics.histogram.enabled=true
+ -Ddubbo.metrics.histogram.enabled-percentiles=true
+ -Ddubbo.metrics.enable-threadpool=true
+ -Ddubbo.metrics.enable-registry=true
+ -Ddubbo.metrics.enable-metadata=true
+ -Ddubbo.metrics.aggregation.enabled=true
+ -Ddubbo.tracing.enabled=true
+
-Ddubbo.tracing.tracing-exporter.otlp-config.endpoint=http://jaeger.dubbo-system.svc:4317
+ - name: DUBBO_LABELS
+ value: "detailVersion=v2; region=hangzhou;"
+---
+#App Comment v1
+apiVersion: apps/v1
+kind: Deployment
+metadata:
+ name: shop-comment-v1
+ namespace: dubbo-demo
+spec:
+ replicas: 1
+ selector:
+ matchLabels:
+ app: shop-comment
+ commentVersion: v1
+ template:
+ metadata:
+ labels:
+ app: shop-comment
+ commentVersion: v1
+ app-type: dubbo
+ spec:
+ containers:
+ - name: shop-comment
+ image: apache/dubbo-demo:dubbo-demo-comment_0.0.2
+ imagePullPolicy: Always
+ ports:
+ - name: dubbo
+ containerPort: 20887
+ protocol: TCP
+ - name: dubbo-qos
+ containerPort: 22222
+ protocol: TCP
+ env:
+ - name: JAVA_TOOL_OPTIONS
+ value:
+
-Ddubbo.registry.address=nacos://nacos.dubbo-system.svc:8848?username=nacos&password=nacos
+
-Ddubbo.config-center.address=nacos://nacos.dubbo-system.svc:8848?username=nacos&password=nacos
+
-Ddubbo.metadata-report.address=nacos://nacos.dubbo-system.svc:8848?username=nacos&password=nacos
+ -Ddubbo.application.metadata-type=remote
+ -Ddubbo.application.qos-port=22222
+ -Ddubbo.application.qos-anonymous-allow-commands=metrics
+ -Ddubbo.metrics.histogram.enabled=true
+ -Ddubbo.metrics.histogram.enabled-percentiles=true
+ -Ddubbo.metrics.enable-threadpool=true
+ -Ddubbo.metrics.enable-registry=true
+ -Ddubbo.metrics.enable-metadata=true
+ -Ddubbo.metrics.aggregation.enabled=true
+ -Ddubbo.tracing.enabled=true
+
-Ddubbo.tracing.tracing-exporter.otlp-config.endpoint=http://jaeger.dubbo-system.svc:4317
+ - name: DUBBO_LABELS
+ value: "commentVersion=v1; region=beijing"
+---
+#App Comment v2
+apiVersion: apps/v1
+kind: Deployment
+metadata:
+ name: shop-comment-v2
+ namespace: dubbo-demo
+spec:
+ replicas: 1
+ selector:
+ matchLabels:
+ app: shop-comment
+ commentVersion: v2
+ template:
+ metadata:
+ labels:
+ app: shop-comment
+ commentVersion: v2
+ app-type: dubbo
+ spec:
+ containers:
+ - name: shop-comment
+ image: apache/dubbo-demo:dubbo-demo-comment_v2_0.0.2
+ imagePullPolicy: Always
+ ports:
+ - name: dubbo
+ containerPort: 20888
+ protocol: TCP
+ - name: dubbo-qos
+ containerPort: 22222
+ protocol: TCP
+ env:
+ - name: JAVA_TOOL_OPTIONS
+ value:
+
-Ddubbo.registry.address=nacos://nacos.dubbo-system.svc:8848?username=nacos&password=nacos
+
-Ddubbo.config-center.address=nacos://nacos.dubbo-system.svc:8848?username=nacos&password=nacos
+
-Ddubbo.metadata-report.address=nacos://nacos.dubbo-system.svc:8848?username=nacos&password=nacos
+ -Ddubbo.application.metadata-type=remote
+ -Ddubbo.application.qos-port=22222
+ -Ddubbo.application.qos-anonymous-allow-commands=metrics
+ -Ddubbo.metrics.histogram.enabled=true
+ -Ddubbo.metrics.histogram.enabled-percentiles=true
+ -Ddubbo.metrics.enable-threadpool=true
+ -Ddubbo.metrics.enable-registry=true
+ -Ddubbo.metrics.enable-metadata=true
+ -Ddubbo.metrics.aggregation.enabled=true
+ -Ddubbo.tracing.enabled=true
+
-Ddubbo.tracing.tracing-exporter.otlp-config.endpoint=http://jaeger.dubbo-system.svc:4317
+ - name: DUBBO_LABELS
+ value: "commentVersion=v2; region=hangzhou;"
+---
+apiVersion: apps/v1
+kind: Deployment
+metadata:
+ name: shop-user-gray
+ namespace: dubbo-demo
+spec:
+ replicas: 1
+ selector:
+ matchLabels:
+ app: shop-user
+ template:
+ metadata:
+ labels:
+ app: shop-user
+ app-type: dubbo
+ spec:
+ containers:
+ - name: shop-user-gray
+ image: apache/dubbo-demo:dubbo-demo-user_gray_0.0.2
+ imagePullPolicy: Always
+ ports:
+ - name: dubbo
+ containerPort: 20892
+ protocol: TCP
+ - name: dubbo-qos
+ containerPort: 22222
+ protocol: TCP
+ env:
+ - name: JAVA_TOOL_OPTIONS
+ value:
+
-Ddubbo.registry.address=nacos://nacos.dubbo-system.svc:8848?username=nacos&password=nacos
+
-Ddubbo.config-center.address=nacos://nacos.dubbo-system.svc:8848?username=nacos&password=nacos
+
-Ddubbo.metadata-report.address=nacos://nacos.dubbo-system.svc:8848?username=nacos&password=nacos
+ -Ddubbo.application.metadata-type=remote
+ -Ddubbo.application.qos-port=22222
+ -Ddubbo.application.qos-anonymous-allow-commands=metrics
+ -Ddubbo.metrics.histogram.enabled=true
+ -Ddubbo.metrics.histogram.enabled-percentiles=true
+ -Ddubbo.metrics.enable-threadpool=true
+ -Ddubbo.metrics.enable-registry=true
+ -Ddubbo.metrics.enable-metadata=true
+ -Ddubbo.metrics.aggregation.enabled=true
+ -Ddubbo.tracing.enabled=true
+
-Ddubbo.tracing.tracing-exporter.otlp-config.endpoint=http://jaeger.dubbo-system.svc:4317
+ - name: DUBBO_LABELS
+ value: "env=gray"
+---
+apiVersion: apps/v1
+kind: Deployment
+metadata:
+ name: shop-order-v1-gray
+ namespace: dubbo-demo
+spec:
+ replicas: 1
+ selector:
+ matchLabels:
+ app: shop-order
+ orderVersion: v1
+ template:
+ metadata:
+ labels:
+ app: shop-order
+ orderVersion: v1
+ app-type: dubbo
+ spec:
+ containers:
+ - name: shop-order
+ image: apache/dubbo-demo:dubbo-demo-order_gray_0.0.2
+ imagePullPolicy: Always
+ ports:
+ - name: dubbo
+ containerPort: 20891
+ protocol: TCP
+ - name: dubbo-qos
+ containerPort: 22222
+ protocol: TCP
+ env:
+ - name: JAVA_TOOL_OPTIONS
+ value:
+
-Ddubbo.registry.address=nacos://nacos.dubbo-system.svc:8848?username=nacos&password=nacos
+
-Ddubbo.config-center.address=nacos://nacos.dubbo-system.svc:8848?username=nacos&password=nacos
+
-Ddubbo.metadata-report.address=nacos://nacos.dubbo-system.svc:8848?username=nacos&password=nacos
+ -Ddubbo.application.metadata-type=remote
+ -Ddubbo.application.qos-port=22222
+ -Ddubbo.application.qos-anonymous-allow-commands=metrics
+ -Ddubbo.metrics.histogram.enabled=true
+ -Ddubbo.metrics.histogram.enabled-percentiles=true
+ -Ddubbo.metrics.enable-threadpool=true
+ -Ddubbo.metrics.enable-registry=true
+ -Ddubbo.metrics.enable-metadata=true
+ -Ddubbo.metrics.aggregation.enabled=true
+ -Ddubbo.tracing.enabled=true
+
-Ddubbo.tracing.tracing-exporter.otlp-config.endpoint=http://jaeger.dubbo-system.svc:4317
+ - name: DUBBO_LABELS
+ value: "env=gray"
+---
+apiVersion: apps/v1
+kind: Deployment
+metadata:
+ name: shop-detail-v1-gray
+ namespace: dubbo-demo
+spec:
+ replicas: 1
+ selector:
+ matchLabels:
+ app: shop-detail
+ detailVersion: v1
+ template:
+ metadata:
+ labels:
+ app: shop-detail
+ detailVersion: v1
+ app-type: dubbo
+ spec:
+ containers:
+ - name: shop-detail
+ image: apache/dubbo-demo:dubbo-demo-detail_gray_0.0.2
+ imagePullPolicy: Always
+ ports:
+ - name: dubbo
+ containerPort: 20890
+ protocol: TCP
+ - name: dubbo-qos
+ containerPort: 22222
+ protocol: TCP
+ env:
+ - name: JAVA_TOOL_OPTIONS
+ value:
+
-Ddubbo.registry.address=nacos://nacos.dubbo-system.svc:8848?username=nacos&password=nacos
+
-Ddubbo.config-center.address=nacos://nacos.dubbo-system.svc:8848?username=nacos&password=nacos
+
-Ddubbo.metadata-report.address=nacos://nacos.dubbo-system.svc:8848?username=nacos&password=nacos
+ -Ddubbo.application.metadata-type=remote
+ -Ddubbo.application.qos-port=22222
+ -Ddubbo.application.qos-anonymous-allow-commands=metrics
+ -Ddubbo.metrics.histogram.enabled=true
+ -Ddubbo.metrics.histogram.enabled-percentiles=true
+ -Ddubbo.metrics.enable-threadpool=true
+ -Ddubbo.metrics.enable-registry=true
+ -Ddubbo.metrics.enable-metadata=true
+ -Ddubbo.metrics.aggregation.enabled=true
+ -Ddubbo.tracing.enabled=true
+
-Ddubbo.tracing.tracing-exporter.otlp-config.endpoint=http://jaeger.dubbo-system.svc:4317
+ - name: DUBBO_LABELS
+ value: "env=gray"
+---
+apiVersion: apps/v1
+kind: Deployment
+metadata:
+ name: shop-comment-v1-gray
+ namespace: dubbo-demo
+spec:
+ replicas: 1
+ selector:
+ matchLabels:
+ app: shop-comment
+ commentVersion: v1
+ template:
+ metadata:
+ labels:
+ app: shop-comment
+ commentVersion: v1
+ app-type: dubbo
+ spec:
+ containers:
+ - name: shop-comment
+ image: apache/dubbo-demo:dubbo-demo-comment_gray_0.0.2
+ imagePullPolicy: Always
+ ports:
+ - name: dubbo
+ containerPort: 20889
+ protocol: TCP
+ - name: dubbo-qos
+ containerPort: 22222
+ protocol: TCP
+ env:
+ - name: JAVA_TOOL_OPTIONS
+ value:
+
-Ddubbo.registry.address=nacos://nacos.dubbo-system.svc:8848?username=nacos&password=nacos
+
-Ddubbo.config-center.address=nacos://nacos.dubbo-system.svc:8848?username=nacos&password=nacos
+
-Ddubbo.metadata-report.address=nacos://nacos.dubbo-system.svc:8848?username=nacos&password=nacos
+ -Ddubbo.application.metadata-type=remote
+ -Ddubbo.application.qos-port=22222
+ -Ddubbo.application.qos-anonymous-allow-commands=metrics
+ -Ddubbo.metrics.histogram.enabled=true
+ -Ddubbo.metrics.histogram.enabled-percentiles=true
+ -Ddubbo.metrics.enable-threadpool=true
+ -Ddubbo.metrics.enable-registry=true
+ -Ddubbo.metrics.enable-metadata=true
+ -Ddubbo.metrics.aggregation.enabled=true
+ -Ddubbo.tracing.enabled=true
+
-Ddubbo.tracing.tracing-exporter.otlp-config.endpoint=http://jaeger.dubbo-system.svc:4317
+ - name: DUBBO_LABELS
+ value: "env=gray"
diff --git a/10-task/dubbo-samples-shop/deploy/dubbo-system.yaml
b/10-task/dubbo-samples-shop/deploy/dubbo-system.yaml
new file mode 100644
index 000000000..d79203202
--- /dev/null
+++ b/10-task/dubbo-samples-shop/deploy/dubbo-system.yaml
@@ -0,0 +1,122 @@
+# Namespace
+apiVersion: v1
+kind: Namespace
+metadata:
+ name: dubbo-system
+---
+# Nacos
+apiVersion: apps/v1
+kind: Deployment
+metadata:
+ name: nacos
+ namespace: dubbo-system
+spec:
+ replicas: 1
+ selector:
+ matchLabels:
+ app: nacos
+ template:
+ metadata:
+ labels:
+ app: nacos
+ spec:
+ containers:
+ - name: consumer
+ image:
registry.cn-hangzhou.aliyuncs.com/robocanic-public/nacos:v2.1.2
+ imagePullPolicy: Always
+ resources:
+ requests:
+ memory: "2Gi"
+ cpu: "500m"
+ ports:
+ - containerPort: 8848
+ name: client
+ - containerPort: 9848
+ name: client-rpc
+ env:
+ - name: NACOS_SERVER_PORT
+ value: "8848"
+ - name: NACOS_APPLICATION_PORT
+ value: "8848"
+ - name: PREFER_HOST_MODE
+ value: "hostname"
+ - name: MODE
+ value: "standalone"
+ - name: NACOS_AUTH_ENABLE
+ value: "true"
+---
+apiVersion: v1
+kind: Service
+metadata:
+ name: nacos
+ namespace: dubbo-system
+spec:
+ type: LoadBalancer
+ sessionAffinity: None
+ selector:
+ app: nacos
+ ports:
+ - port: 8848
+ name: server
+ targetPort: 8848
+ - port: 9848
+ name: client-rpc
+ targetPort: 9848
+---
+# Dubbo Admin
+apiVersion: v1
+kind: ConfigMap
+metadata:
+ name: dubbo-admin
+ namespace: dubbo-system
+data:
+ # Set the properties you want to override, properties not set here will be
using the default values
+ # check application.properties inside dubbo-admin project for the keys
supported
+ application.properties: |
+
admin.registry.address=nacos://nacos.dubbo-system.svc:8848?username=nacos&password=nacos
+
admin.config-center=nacos://nacos.dubbo-system.svc:8848?username=nacos&password=nacos
+
admin.metadata-report.address=nacos://nacos.dubbo-system.svc:8848?username=nacos&password=nacos
+---
+apiVersion: apps/v1
+kind: Deployment
+metadata:
+ name: dubbo-admin
+ namespace: dubbo-system
+ labels:
+ app: dubbo-admin
+spec:
+ replicas: 1
+ selector:
+ matchLabels:
+ app: dubbo-admin
+ template:
+ metadata:
+ labels:
+ app: dubbo-admin
+ spec:
+ containers:
+ - image:
registry.cn-hangzhou.aliyuncs.com/robocanic-public/dubbo-admin:0.6.0
+ name: dubbo-admin
+ ports:
+ - containerPort: 38080
+ volumeMounts:
+ - mountPath: /config
+ name: application-properties
+ volumes:
+ - name: application-properties
+ configMap:
+ name: dubbo-admin
+---
+apiVersion: v1
+kind: Service
+metadata:
+ name: dubbo-admin
+ namespace: dubbo-system
+spec:
+ type: LoadBalancer
+ selector:
+ app: dubbo-admin
+ ports:
+ - protocol: TCP
+ port: 38080
+ targetPort: 38080
diff --git a/10-task/dubbo-samples-shop/deploy/frontend/Deployment.yml
b/10-task/dubbo-samples-shop/deploy/frontend/Deployment.yml
index e05809c73..952d7b140 100644
--- a/10-task/dubbo-samples-shop/deploy/frontend/Deployment.yml
+++ b/10-task/dubbo-samples-shop/deploy/frontend/Deployment.yml
@@ -27,38 +27,33 @@ spec:
metadata:
labels:
app: shop-frontend
+ app-type: dubbo
spec:
- volumes:
- - name: skywalking-agent
- emptyDir: { }
-
- initContainers:
- - name: agent-container
- image: apache/skywalking-java-agent:8.13.0-java17
- volumeMounts:
- - name: skywalking-agent
- mountPath: /agent
- command: [ "/bin/sh" ]
- args: [ "-c", "cp -R /skywalking/agent /agent/" ]
-
containers:
- name: shop-frontend
- image: apache/dubbo-demo:dubbo-samples-shop-frontend_0.0.1
+ image: apache/dubbo-demo:dubbo-demo-frontend_0.0.2
imagePullPolicy: Always
ports:
- name: dubbo
containerPort: 20881
protocol: TCP
- name: dubbo-qos
- containerPort: 20991
+ containerPort: 22222
protocol: TCP
- volumeMounts:
- - name: skywalking-agent
- mountPath: /skywalking
env:
- name: JAVA_TOOL_OPTIONS
- value: "-javaagent:/skywalking/agent/skywalking-agent.jar"
- - name: SW_AGENT_NAME
- value: shop::shop-frontend
- - name: SW_AGENT_COLLECTOR_BACKEND_SERVICES
- value: "skywalking-oap-server.dubbo-system.svc:11800"
+ value: >-
+
-Ddubbo.registry.address=nacos://nacos.dubbo-system.svc:8848?username=nacos&password=nacos
+
-Ddubbo.config-center.address=nacos://nacos.dubbo-system.svc:8848?username=nacos&password=nacos
+
-Ddubbo.metadata-report.address=nacos://nacos.dubbo-system.svc:8848?username=nacos&password=nacos
+ -Ddubbo.application.metadata-type=remote
+ -Ddubbo.application.qos-port=22222
+ -Ddubbo.application.qos-anonymous-allow-commands=metrics
+ -Ddubbo.metrics.histogram.enabled=true
+ -Ddubbo.metrics.histogram.enabled-percentiles=true
+ -Ddubbo.metrics.enable-threadpool=true
+ -Ddubbo.metrics.enable-registry=true
+ -Ddubbo.metrics.enable-metadata=true
+ -Ddubbo.metrics.aggregation.enabled=true
+ -Ddubbo.tracing.enabled=true
+
-Ddubbo.tracing.tracing-exporter.otlp-config.endpoint=http://jaeger.dubbo-system.svc:4317
diff --git a/10-task/dubbo-samples-shop/deploy/order-v1-gray/Deployment.yml
b/10-task/dubbo-samples-shop/deploy/order-v1-gray/Deployment.yml
index 464e458ba..ceb9bdc6e 100644
--- a/10-task/dubbo-samples-shop/deploy/order-v1-gray/Deployment.yml
+++ b/10-task/dubbo-samples-shop/deploy/order-v1-gray/Deployment.yml
@@ -19,7 +19,7 @@ metadata:
name: shop-order-v1-gray
namespace: dubbo-demo
spec:
- replicas: 2
+ replicas: 1
selector:
matchLabels:
app: shop-order
@@ -29,40 +29,35 @@ spec:
labels:
app: shop-order
orderVersion: v1
+ app-type: dubbo
spec:
- volumes:
- - name: skywalking-agent
- emptyDir: { }
-
- initContainers:
- - name: agent-container
- image: apache/skywalking-java-agent:8.13.0-java17
- volumeMounts:
- - name: skywalking-agent
- mountPath: /agent
- command: [ "/bin/sh" ]
- args: [ "-c", "cp -R /skywalking/agent /agent/" ]
-
containers:
- name: shop-order
- image: apache/dubbo-demo:dubbo-samples-shop-order_gray_0.0.1
+ image: apache/dubbo-demo:dubbo-demo-order_gray_0.0.2
imagePullPolicy: Always
ports:
- name: dubbo
containerPort: 20891
protocol: TCP
- name: dubbo-qos
- containerPort: 21001
+ containerPort: 22222
protocol: TCP
- volumeMounts:
- - name: skywalking-agent
- mountPath: /skywalking
env:
- name: JAVA_TOOL_OPTIONS
- value: "-javaagent:/skywalking/agent/skywalking-agent.jar"
- - name: SW_AGENT_NAME
- value: shop::shop-order
- - name: SW_AGENT_COLLECTOR_BACKEND_SERVICES
- value: "skywalking-oap-server.dubbo-system.svc:11800"
+ value:
+
-Ddubbo.registry.address=nacos://nacos.dubbo-system.svc:8848?username=nacos&password=nacos
+
-Ddubbo.config-center.address=nacos://nacos.dubbo-system.svc:8848?username=nacos&password=nacos
+
-Ddubbo.metadata-report.address=nacos://nacos.dubbo-system.svc:8848?username=nacos&password=nacos
+ -Ddubbo.application.metadata-type=remote
+ -Ddubbo.application.qos-port=22222
+ -Ddubbo.application.qos-anonymous-allow-commands=metrics
+ -Ddubbo.metrics.histogram.enabled=true
+ -Ddubbo.metrics.histogram.enabled-percentiles=true
+ -Ddubbo.metrics.enable-threadpool=true
+ -Ddubbo.metrics.enable-registry=true
+ -Ddubbo.metrics.enable-metadata=true
+ -Ddubbo.metrics.aggregation.enabled=true
+ -Ddubbo.tracing.enabled=true
+
-Ddubbo.tracing.tracing-exporter.otlp-config.endpoint=http://jaeger.dubbo-system.svc:4317
- name: DUBBO_LABELS
value: "env=gray"
diff --git a/10-task/dubbo-samples-shop/deploy/order-v1/Deployment.yml
b/10-task/dubbo-samples-shop/deploy/order-v1/Deployment.yml
index c26e39904..e30979d58 100644
--- a/10-task/dubbo-samples-shop/deploy/order-v1/Deployment.yml
+++ b/10-task/dubbo-samples-shop/deploy/order-v1/Deployment.yml
@@ -19,7 +19,7 @@ metadata:
name: shop-order-v1
namespace: dubbo-demo
spec:
- replicas: 2
+ replicas: 1
selector:
matchLabels:
app: shop-order
@@ -29,40 +29,35 @@ spec:
labels:
app: shop-order
orderVersion: v1
+ app-type: dubbo
spec:
- volumes:
- - name: skywalking-agent
- emptyDir: { }
-
- initContainers:
- - name: agent-container
- image: apache/skywalking-java-agent:8.13.0-java17
- volumeMounts:
- - name: skywalking-agent
- mountPath: /agent
- command: [ "/bin/sh" ]
- args: [ "-c", "cp -R /skywalking/agent /agent/" ]
-
containers:
- name: shop-order
- image: apache/dubbo-demo:dubbo-samples-shop-order_v1_0.0.1
+ image: apache/dubbo-demo:dubbo-demo-order_v1_0.0.2
imagePullPolicy: Always
ports:
- name: dubbo
containerPort: 20882
protocol: TCP
- name: dubbo-qos
- containerPort: 20992
+ containerPort: 22222
protocol: TCP
- volumeMounts:
- - name: skywalking-agent
- mountPath: /skywalking
env:
- name: JAVA_TOOL_OPTIONS
- value: "-javaagent:/skywalking/agent/skywalking-agent.jar"
- - name: SW_AGENT_NAME
- value: shop::shop-order
- - name: SW_AGENT_COLLECTOR_BACKEND_SERVICES
- value: "skywalking-oap-server.dubbo-system.svc:11800"
+ value: >-
+
-Ddubbo.registry.address=nacos://nacos.dubbo-system.svc:8848?username=nacos&password=nacos
+
-Ddubbo.config-center.address=nacos://nacos.dubbo-system.svc:8848?username=nacos&password=nacos
+
-Ddubbo.metadata-report.address=nacos://nacos.dubbo-system.svc:8848?username=nacos&password=nacos
+ -Ddubbo.application.metadata-type=remote
+ -Ddubbo.application.qos-port=22222
+ -Ddubbo.application.qos-anonymous-allow-commands=metrics
+ -Ddubbo.metrics.histogram.enabled=true
+ -Ddubbo.metrics.histogram.enabled-percentiles=true
+ -Ddubbo.metrics.enable-threadpool=true
+ -Ddubbo.metrics.enable-registry=true
+ -Ddubbo.metrics.enable-metadata=true
+ -Ddubbo.metrics.aggregation.enabled=true
+ -Ddubbo.tracing.enabled=true
+
-Ddubbo.tracing.tracing-exporter.otlp-config.endpoint=http://jaeger.dubbo-system.svc:4317
- name: DUBBO_LABELS
- value: "orderVersion=v1"
+ value: "orderVersion=v1"
\ No newline at end of file
diff --git a/10-task/dubbo-samples-shop/deploy/order-v2/Deployment.yml
b/10-task/dubbo-samples-shop/deploy/order-v2/Deployment.yml
index 5c448d74c..7b8fe24a8 100644
--- a/10-task/dubbo-samples-shop/deploy/order-v2/Deployment.yml
+++ b/10-task/dubbo-samples-shop/deploy/order-v2/Deployment.yml
@@ -19,7 +19,7 @@ metadata:
name: shop-order-v2
namespace: dubbo-demo
spec:
- replicas: 3
+ replicas: 1
selector:
matchLabels:
app: shop-order
@@ -29,40 +29,35 @@ spec:
labels:
app: shop-order
orderVersion: v2
+ app-type: dubbo
spec:
- volumes:
- - name: skywalking-agent
- emptyDir: { }
-
- initContainers:
- - name: agent-container
- image: apache/skywalking-java-agent:8.13.0-java17
- volumeMounts:
- - name: skywalking-agent
- mountPath: /agent
- command: [ "/bin/sh" ]
- args: [ "-c", "cp -R /skywalking/agent /agent/" ]
-
containers:
- name: shop-order
- image: apache/dubbo-demo:dubbo-samples-shop-order_v2_0.0.1
+ image: apache/dubbo-demo:dubbo-demo-order_v2_0.0.2
imagePullPolicy: Always
ports:
- name: dubbo
containerPort: 20883
protocol: TCP
- name: dubbo-qos
- containerPort: 20993
+ containerPort: 22222
protocol: TCP
- volumeMounts:
- - name: skywalking-agent
- mountPath: /skywalking
env:
- name: JAVA_TOOL_OPTIONS
- value: "-javaagent:/skywalking/agent/skywalking-agent.jar"
- - name: SW_AGENT_NAME
- value: shop::shop-order
- - name: SW_AGENT_COLLECTOR_BACKEND_SERVICES
- value: "skywalking-oap-server.dubbo-system.svc:11800"
+ value: >-
+
-Ddubbo.registry.address=nacos://nacos.dubbo-system.svc:8848?username=nacos&password=nacos
+
-Ddubbo.config-center.address=nacos://nacos.dubbo-system.svc:8848?username=nacos&password=nacos
+
-Ddubbo.metadata-report.address=nacos://nacos.dubbo-system.svc:8848?username=nacos&password=nacos
+ -Ddubbo.application.metadata-type=remote
+ -Ddubbo.application.qos-port=22222
+ -Ddubbo.application.qos-anonymous-allow-commands=metrics
+ -Ddubbo.metrics.histogram.enabled=true
+ -Ddubbo.metrics.histogram.enabled-percentiles=true
+ -Ddubbo.metrics.enable-threadpool=true
+ -Ddubbo.metrics.enable-registry=true
+ -Ddubbo.metrics.enable-metadata=true
+ -Ddubbo.metrics.aggregation.enabled=true
+ -Ddubbo.tracing.enabled=true
+
-Ddubbo.tracing.tracing-exporter.otlp-config.endpoint=http://jaeger.dubbo-system.svc:4317
- name: DUBBO_LABELS
- value: "orderVersion=v2;"
+ value: "orderVersion=v2;"
\ No newline at end of file
diff --git a/10-task/dubbo-samples-shop/deploy/user-gray/Deployment.yml
b/10-task/dubbo-samples-shop/deploy/user-gray/Deployment.yml
index 5b074a2b1..43d887689 100644
--- a/10-task/dubbo-samples-shop/deploy/user-gray/Deployment.yml
+++ b/10-task/dubbo-samples-shop/deploy/user-gray/Deployment.yml
@@ -19,7 +19,7 @@ metadata:
name: shop-user-gray
namespace: dubbo-demo
spec:
- replicas: 3
+ replicas: 1
selector:
matchLabels:
app: shop-user
@@ -27,40 +27,35 @@ spec:
metadata:
labels:
app: shop-user
+ app-type: dubbo
spec:
- volumes:
- - name: skywalking-agent
- emptyDir: { }
-
- initContainers:
- - name: agent-container
- image: apache/skywalking-java-agent:8.13.0-java17
- volumeMounts:
- - name: skywalking-agent
- mountPath: /agent
- command: [ "/bin/sh" ]
- args: [ "-c", "cp -R /skywalking/agent /agent/" ]
-
containers:
- name: shop-user-gray
- image: apache/dubbo-demo:dubbo-samples-shop-user_gray_0.0.1
+ image: apache/dubbo-demo:dubbo-demo-user_gray_0.0.2
imagePullPolicy: Always
ports:
- name: dubbo
containerPort: 20892
protocol: TCP
- name: dubbo-qos
- containerPort: 21002
+ containerPort: 22222
protocol: TCP
- volumeMounts:
- - name: skywalking-agent
- mountPath: /skywalking
env:
- name: JAVA_TOOL_OPTIONS
- value: "-javaagent:/skywalking/agent/skywalking-agent.jar"
- - name: SW_AGENT_NAME
- value: shop::shop-user
- - name: SW_AGENT_COLLECTOR_BACKEND_SERVICES
- value: "skywalking-oap-server.dubbo-system.svc:11800"
+ value:
+
-Ddubbo.registry.address=nacos://nacos.dubbo-system.svc:8848?username=nacos&password=nacos
+
-Ddubbo.config-center.address=nacos://nacos.dubbo-system.svc:8848?username=nacos&password=nacos
+
-Ddubbo.metadata-report.address=nacos://nacos.dubbo-system.svc:8848?username=nacos&password=nacos
+ -Ddubbo.application.metadata-type=remote
+ -Ddubbo.application.qos-port=22222
+ -Ddubbo.application.qos-anonymous-allow-commands=metrics
+ -Ddubbo.metrics.histogram.enabled=true
+ -Ddubbo.metrics.histogram.enabled-percentiles=true
+ -Ddubbo.metrics.enable-threadpool=true
+ -Ddubbo.metrics.enable-registry=true
+ -Ddubbo.metrics.enable-metadata=true
+ -Ddubbo.metrics.aggregation.enabled=true
+ -Ddubbo.tracing.enabled=true
+
-Ddubbo.tracing.tracing-exporter.otlp-config.endpoint=http://jaeger.dubbo-system.svc:4317
- name: DUBBO_LABELS
- value: "env=gray"
+ value: "env=gray"
\ No newline at end of file
diff --git a/10-task/dubbo-samples-shop/deploy/user/Deployment.yml
b/10-task/dubbo-samples-shop/deploy/user/Deployment.yml
index c2d75d3fd..d4f6886a4 100644
--- a/10-task/dubbo-samples-shop/deploy/user/Deployment.yml
+++ b/10-task/dubbo-samples-shop/deploy/user/Deployment.yml
@@ -19,7 +19,7 @@ metadata:
name: shop-user
namespace: dubbo-demo
spec:
- replicas: 3
+ replicas: 1
selector:
matchLabels:
app: shop-user
@@ -27,38 +27,33 @@ spec:
metadata:
labels:
app: shop-user
+ app-type: dubbo
spec:
- volumes:
- - name: skywalking-agent
- emptyDir: { }
-
- initContainers:
- - name: agent-container
- image: apache/skywalking-java-agent:8.13.0-java17
- volumeMounts:
- - name: skywalking-agent
- mountPath: /agent
- command: [ "/bin/sh" ]
- args: [ "-c", "cp -R /skywalking/agent /agent/" ]
-
containers:
- name: shop-user
- image: apache/dubbo-demo:dubbo-samples-shop-user_0.0.1
+ image: apache/dubbo-demo:dubbo-demo-user_0.0.2
imagePullPolicy: Always
ports:
- name: dubbo
containerPort: 20884
protocol: TCP
- name: dubbo-qos
- containerPort: 20994
+ containerPort: 22222
protocol: TCP
- volumeMounts:
- - name: skywalking-agent
- mountPath: /skywalking
env:
- name: JAVA_TOOL_OPTIONS
- value: "-javaagent:/skywalking/agent/skywalking-agent.jar"
- - name: SW_AGENT_NAME
- value: shop::shop-user
- - name: SW_AGENT_COLLECTOR_BACKEND_SERVICES
- value: "skywalking-oap-server.dubbo-system.svc:11800"
+ value:
+
-Ddubbo.registry.address=nacos://nacos.dubbo-system.svc:8848?username=nacos&password=nacos
+
-Ddubbo.config-center.address=nacos://nacos.dubbo-system.svc:8848?username=nacos&password=nacos
+
-Ddubbo.metadata-report.address=nacos://nacos.dubbo-system.svc:8848?username=nacos&password=nacos
+ -Ddubbo.application.metadata-type=remote
+ -Ddubbo.application.qos-port=22222
+ -Ddubbo.application.qos-anonymous-allow-commands=metrics
+ -Ddubbo.metrics.histogram.enabled=true
+ -Ddubbo.metrics.histogram.enabled-percentiles=true
+ -Ddubbo.metrics.enable-threadpool=true
+ -Ddubbo.metrics.enable-registry=true
+ -Ddubbo.metrics.enable-metadata=true
+ -Ddubbo.metrics.aggregation.enabled=true
+ -Ddubbo.tracing.enabled=true
+
-Ddubbo.tracing.tracing-exporter.otlp-config.endpoint=http://jaeger.dubbo-system.svc:4317
diff --git a/10-task/dubbo-samples-shop/dubbo-samples-shop-comment-api/pom.xml
b/10-task/dubbo-samples-shop/dubbo-samples-shop-comment-api/pom.xml
index 305364f76..c26580e60 100644
--- a/10-task/dubbo-samples-shop/dubbo-samples-shop-comment-api/pom.xml
+++ b/10-task/dubbo-samples-shop/dubbo-samples-shop-comment-api/pom.xml
@@ -34,8 +34,8 @@
<description>Dubbo Task - Shop - Comment's API</description>
<properties>
- <maven.compiler.source>1.8</maven.compiler.source>
- <maven.compiler.target>1.8</maven.compiler.target>
+ <maven.compiler.source>17</maven.compiler.source>
+ <maven.compiler.target>17</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
</project>
diff --git
a/10-task/dubbo-samples-shop/dubbo-samples-shop-comment-gray/Dockerfile
b/10-task/dubbo-samples-shop/dubbo-samples-shop-comment-gray/Dockerfile
new file mode 100644
index 000000000..e0c5ba721
--- /dev/null
+++ b/10-task/dubbo-samples-shop/dubbo-samples-shop-comment-gray/Dockerfile
@@ -0,0 +1,4 @@
+FROM openjdk:17-jdk-alpine
+COPY ./target/*.jar /appruntime/app.jar
+WORKDIR /appruntime
+ENTRYPOINT ["java","-jar","/appruntime/app.jar"]
\ No newline at end of file
diff --git a/10-task/dubbo-samples-shop/dubbo-samples-shop-comment-gray/pom.xml
b/10-task/dubbo-samples-shop/dubbo-samples-shop-comment-gray/pom.xml
index 044b99c03..21d4a5339 100644
--- a/10-task/dubbo-samples-shop/dubbo-samples-shop-comment-gray/pom.xml
+++ b/10-task/dubbo-samples-shop/dubbo-samples-shop-comment-gray/pom.xml
@@ -33,11 +33,11 @@
<description>Dubbo Task - Shop - Comment Gray</description>
<properties>
- <maven.compiler.source>1.8</maven.compiler.source>
- <maven.compiler.target>1.8</maven.compiler.target>
+ <maven.compiler.source>17</maven.compiler.source>
+ <maven.compiler.target>17</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
- <dubbo.version>3.3.1</dubbo.version>
+ <dubbo.version>3.2.16</dubbo.version>
<nacos.version>2.2.0</nacos.version>
</properties>
@@ -63,6 +63,18 @@
<version>${dubbo.version}</version>
</dependency>
+ <dependency>
+ <groupId>org.apache.dubbo</groupId>
+
<artifactId>dubbo-spring-boot-tracing-otel-otlp-starter</artifactId>
+ <version>${dubbo.version}</version>
+ </dependency>
+
+ <dependency>
+ <groupId>org.apache.dubbo</groupId>
+ <artifactId>dubbo-spring-boot-observability-starter</artifactId>
+ <version>${dubbo.version}</version>
+ </dependency>
+
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter</artifactId>
@@ -86,6 +98,12 @@
</dependency>
</dependencies>
+ <repositories>
+ <repository>
+ <id>alibaba-maven</id>
+ <url>https://maven.aliyun.com/repository/public</url>
+ </repository>
+ </repositories>
<build>
<plugins>
<plugin>
@@ -102,7 +120,7 @@
<version>3.2.1</version>
<configuration>
<to>
-
<image>apache/dubbo-demo:dubbo-samples-shop-comment_gray_0.0.1</image>
+
<image>apache/dubbo-demo:dubbo-samples-shop-comment_gray_0.0.2</image>
</to>
<container>
<jvmFlags>
diff --git
a/10-task/dubbo-samples-shop/dubbo-samples-shop-comment-v1/Dockerfile
b/10-task/dubbo-samples-shop/dubbo-samples-shop-comment-v1/Dockerfile
new file mode 100644
index 000000000..e0c5ba721
--- /dev/null
+++ b/10-task/dubbo-samples-shop/dubbo-samples-shop-comment-v1/Dockerfile
@@ -0,0 +1,4 @@
+FROM openjdk:17-jdk-alpine
+COPY ./target/*.jar /appruntime/app.jar
+WORKDIR /appruntime
+ENTRYPOINT ["java","-jar","/appruntime/app.jar"]
\ No newline at end of file
diff --git a/10-task/dubbo-samples-shop/dubbo-samples-shop-comment-v1/pom.xml
b/10-task/dubbo-samples-shop/dubbo-samples-shop-comment-v1/pom.xml
index 5583c5e12..6a3671ebc 100644
--- a/10-task/dubbo-samples-shop/dubbo-samples-shop-comment-v1/pom.xml
+++ b/10-task/dubbo-samples-shop/dubbo-samples-shop-comment-v1/pom.xml
@@ -33,11 +33,11 @@
<description>Dubbo Task - Shop - Comment Version1</description>
<properties>
- <maven.compiler.source>1.8</maven.compiler.source>
- <maven.compiler.target>1.8</maven.compiler.target>
+ <maven.compiler.source>17</maven.compiler.source>
+ <maven.compiler.target>17</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
- <dubbo.version>3.3.1</dubbo.version>
+ <dubbo.version>3.2.16</dubbo.version>
<nacos.version>2.2.0</nacos.version>
</properties>
@@ -63,6 +63,18 @@
<version>${dubbo.version}</version>
</dependency>
+ <dependency>
+ <groupId>org.apache.dubbo</groupId>
+
<artifactId>dubbo-spring-boot-tracing-otel-otlp-starter</artifactId>
+ <version>${dubbo.version}</version>
+ </dependency>
+
+ <dependency>
+ <groupId>org.apache.dubbo</groupId>
+ <artifactId>dubbo-spring-boot-observability-starter</artifactId>
+ <version>${dubbo.version}</version>
+ </dependency>
+
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter</artifactId>
@@ -102,7 +114,7 @@
<version>3.2.1</version>
<configuration>
<to>
-
<image>apache/dubbo-demo:dubbo-samples-shop-comment_0.0.1</image>
+
<image>apache/dubbo-demo:dubbo-samples-shop-comment_0.0.2</image>
</to>
<container>
<jvmFlags>
diff --git
a/10-task/dubbo-samples-shop/dubbo-samples-shop-comment-v2/Dockerfile
b/10-task/dubbo-samples-shop/dubbo-samples-shop-comment-v2/Dockerfile
new file mode 100644
index 000000000..e0c5ba721
--- /dev/null
+++ b/10-task/dubbo-samples-shop/dubbo-samples-shop-comment-v2/Dockerfile
@@ -0,0 +1,4 @@
+FROM openjdk:17-jdk-alpine
+COPY ./target/*.jar /appruntime/app.jar
+WORKDIR /appruntime
+ENTRYPOINT ["java","-jar","/appruntime/app.jar"]
\ No newline at end of file
diff --git a/10-task/dubbo-samples-shop/dubbo-samples-shop-comment-v2/pom.xml
b/10-task/dubbo-samples-shop/dubbo-samples-shop-comment-v2/pom.xml
index 49239f35b..ed538ecb7 100644
--- a/10-task/dubbo-samples-shop/dubbo-samples-shop-comment-v2/pom.xml
+++ b/10-task/dubbo-samples-shop/dubbo-samples-shop-comment-v2/pom.xml
@@ -33,11 +33,11 @@
<description>Dubbo Task - Shop - Comment Version2</description>
<properties>
- <maven.compiler.source>1.8</maven.compiler.source>
- <maven.compiler.target>1.8</maven.compiler.target>
+ <maven.compiler.source>17</maven.compiler.source>
+ <maven.compiler.target>17</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
- <dubbo.version>3.3.1</dubbo.version>
+ <dubbo.version>3.2.16</dubbo.version>
<nacos.version>2.2.0</nacos.version>
</properties>
@@ -63,6 +63,18 @@
<version>${dubbo.version}</version>
</dependency>
+ <dependency>
+ <groupId>org.apache.dubbo</groupId>
+
<artifactId>dubbo-spring-boot-tracing-otel-otlp-starter</artifactId>
+ <version>${dubbo.version}</version>
+ </dependency>
+
+ <dependency>
+ <groupId>org.apache.dubbo</groupId>
+ <artifactId>dubbo-spring-boot-observability-starter</artifactId>
+ <version>${dubbo.version}</version>
+ </dependency>
+
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter</artifactId>
@@ -102,7 +114,7 @@
<version>3.2.1</version>
<configuration>
<to>
-
<image>apache/dubbo-demo:dubbo-samples-shop-comment_v2_0.0.1</image>
+
<image>apache/dubbo-demo:dubbo-samples-shop-comment_v2_0.0.2</image>
</to>
<container>
<jvmFlags>
diff --git a/10-task/dubbo-samples-shop/dubbo-samples-shop-detail-api/pom.xml
b/10-task/dubbo-samples-shop/dubbo-samples-shop-detail-api/pom.xml
index c147eeca8..dfb403847 100644
--- a/10-task/dubbo-samples-shop/dubbo-samples-shop-detail-api/pom.xml
+++ b/10-task/dubbo-samples-shop/dubbo-samples-shop-detail-api/pom.xml
@@ -34,8 +34,8 @@
<description>Dubbo Task - Shop - Detail's API</description>
<properties>
- <maven.compiler.source>1.8</maven.compiler.source>
- <maven.compiler.target>1.8</maven.compiler.target>
+ <maven.compiler.source>17</maven.compiler.source>
+ <maven.compiler.target>17</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
</project>
diff --git
a/10-task/dubbo-samples-shop/dubbo-samples-shop-detail-gray/Dockerfile
b/10-task/dubbo-samples-shop/dubbo-samples-shop-detail-gray/Dockerfile
new file mode 100644
index 000000000..e0c5ba721
--- /dev/null
+++ b/10-task/dubbo-samples-shop/dubbo-samples-shop-detail-gray/Dockerfile
@@ -0,0 +1,4 @@
+FROM openjdk:17-jdk-alpine
+COPY ./target/*.jar /appruntime/app.jar
+WORKDIR /appruntime
+ENTRYPOINT ["java","-jar","/appruntime/app.jar"]
\ No newline at end of file
diff --git a/10-task/dubbo-samples-shop/dubbo-samples-shop-detail-gray/pom.xml
b/10-task/dubbo-samples-shop/dubbo-samples-shop-detail-gray/pom.xml
index 1e478add3..2633466ca 100644
--- a/10-task/dubbo-samples-shop/dubbo-samples-shop-detail-gray/pom.xml
+++ b/10-task/dubbo-samples-shop/dubbo-samples-shop-detail-gray/pom.xml
@@ -33,11 +33,11 @@
<description>Dubbo Task - Shop - Detail Gray</description>
<properties>
- <maven.compiler.source>1.8</maven.compiler.source>
- <maven.compiler.target>1.8</maven.compiler.target>
+ <maven.compiler.source>17</maven.compiler.source>
+ <maven.compiler.target>17</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
- <dubbo.version>3.3.1</dubbo.version>
+ <dubbo.version>3.2.16</dubbo.version>
<nacos.version>2.2.0</nacos.version>
</properties>
@@ -67,6 +67,18 @@
<version>${dubbo.version}</version>
</dependency>
+ <dependency>
+ <groupId>org.apache.dubbo</groupId>
+
<artifactId>dubbo-spring-boot-tracing-otel-otlp-starter</artifactId>
+ <version>${dubbo.version}</version>
+ </dependency>
+
+ <dependency>
+ <groupId>org.apache.dubbo</groupId>
+ <artifactId>dubbo-spring-boot-observability-starter</artifactId>
+ <version>${dubbo.version}</version>
+ </dependency>
+
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter</artifactId>
@@ -106,7 +118,7 @@
<version>3.2.1</version>
<configuration>
<to>
-
<image>apache/dubbo-demo:dubbo-samples-shop-detail_gray_0.0.1</image>
+
<image>apache/dubbo-demo:dubbo-samples-shop-detail_gray_0.0.2</image>
</to>
<container>
<jvmFlags>
diff --git a/10-task/dubbo-samples-shop/dubbo-samples-shop-detail-v1/Dockerfile
b/10-task/dubbo-samples-shop/dubbo-samples-shop-detail-v1/Dockerfile
new file mode 100644
index 000000000..e0c5ba721
--- /dev/null
+++ b/10-task/dubbo-samples-shop/dubbo-samples-shop-detail-v1/Dockerfile
@@ -0,0 +1,4 @@
+FROM openjdk:17-jdk-alpine
+COPY ./target/*.jar /appruntime/app.jar
+WORKDIR /appruntime
+ENTRYPOINT ["java","-jar","/appruntime/app.jar"]
\ No newline at end of file
diff --git a/10-task/dubbo-samples-shop/dubbo-samples-shop-detail-v1/pom.xml
b/10-task/dubbo-samples-shop/dubbo-samples-shop-detail-v1/pom.xml
index e32c0757b..3f189c2b1 100644
--- a/10-task/dubbo-samples-shop/dubbo-samples-shop-detail-v1/pom.xml
+++ b/10-task/dubbo-samples-shop/dubbo-samples-shop-detail-v1/pom.xml
@@ -33,11 +33,11 @@
<description>Dubbo Task - Shop - Detail Version1</description>
<properties>
- <maven.compiler.source>1.8</maven.compiler.source>
- <maven.compiler.target>1.8</maven.compiler.target>
+ <maven.compiler.source>17</maven.compiler.source>
+ <maven.compiler.target>17</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
- <dubbo.version>3.3.1</dubbo.version>
+ <dubbo.version>3.2.16</dubbo.version>
<nacos.version>2.2.0</nacos.version>
</properties>
@@ -60,6 +60,18 @@
<version>${nacos.version}</version>
</dependency>
+ <dependency>
+ <groupId>org.apache.dubbo</groupId>
+
<artifactId>dubbo-spring-boot-tracing-otel-otlp-starter</artifactId>
+ <version>${dubbo.version}</version>
+ </dependency>
+
+ <dependency>
+ <groupId>org.apache.dubbo</groupId>
+ <artifactId>dubbo-spring-boot-observability-starter</artifactId>
+ <version>${dubbo.version}</version>
+ </dependency>
+
<!-- dubbo dependency-->
<dependency>
<groupId>org.apache.dubbo</groupId>
@@ -106,7 +118,7 @@
<version>3.2.1</version>
<configuration>
<to>
-
<image>apache/dubbo-demo:dubbo-samples-shop-detail_0.0.1</image>
+
<image>apache/dubbo-demo:dubbo-samples-shop-detail_0.0.2</image>
</to>
<container>
<jvmFlags>
diff --git a/10-task/dubbo-samples-shop/dubbo-samples-shop-detail-v2/Dockerfile
b/10-task/dubbo-samples-shop/dubbo-samples-shop-detail-v2/Dockerfile
new file mode 100644
index 000000000..e0c5ba721
--- /dev/null
+++ b/10-task/dubbo-samples-shop/dubbo-samples-shop-detail-v2/Dockerfile
@@ -0,0 +1,4 @@
+FROM openjdk:17-jdk-alpine
+COPY ./target/*.jar /appruntime/app.jar
+WORKDIR /appruntime
+ENTRYPOINT ["java","-jar","/appruntime/app.jar"]
\ No newline at end of file
diff --git a/10-task/dubbo-samples-shop/dubbo-samples-shop-detail-v2/pom.xml
b/10-task/dubbo-samples-shop/dubbo-samples-shop-detail-v2/pom.xml
index f5bbd33dd..002217146 100644
--- a/10-task/dubbo-samples-shop/dubbo-samples-shop-detail-v2/pom.xml
+++ b/10-task/dubbo-samples-shop/dubbo-samples-shop-detail-v2/pom.xml
@@ -33,11 +33,11 @@
<description>Dubbo Task - Shop - Detail Version2</description>
<properties>
- <maven.compiler.source>1.8</maven.compiler.source>
- <maven.compiler.target>1.8</maven.compiler.target>
+ <maven.compiler.source>17</maven.compiler.source>
+ <maven.compiler.target>17</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
- <dubbo.version>3.3.1</dubbo.version>
+ <dubbo.version>3.2.16</dubbo.version>
<nacos.version>2.2.0</nacos.version>
</properties>
@@ -60,6 +60,18 @@
<version>${nacos.version}</version>
</dependency>
+ <dependency>
+ <groupId>org.apache.dubbo</groupId>
+
<artifactId>dubbo-spring-boot-tracing-otel-otlp-starter</artifactId>
+ <version>${dubbo.version}</version>
+ </dependency>
+
+ <dependency>
+ <groupId>org.apache.dubbo</groupId>
+ <artifactId>dubbo-spring-boot-observability-starter</artifactId>
+ <version>${dubbo.version}</version>
+ </dependency>
+
<!-- dubbo dependency-->
<dependency>
<groupId>org.apache.dubbo</groupId>
@@ -106,7 +118,7 @@
<version>3.2.1</version>
<configuration>
<to>
-
<image>apache/dubbo-demo:dubbo-samples-shop-detail_v2_0.0.1</image>
+
<image>apache/dubbo-demo:dubbo-samples-shop-detail_v2_0.0.2</image>
</to>
<container>
<jvmFlags>
diff --git a/10-task/dubbo-samples-shop/dubbo-samples-shop-frontend-api/pom.xml
b/10-task/dubbo-samples-shop/dubbo-samples-shop-frontend-api/pom.xml
index 6b8325f79..0b7154ab4 100644
--- a/10-task/dubbo-samples-shop/dubbo-samples-shop-frontend-api/pom.xml
+++ b/10-task/dubbo-samples-shop/dubbo-samples-shop-frontend-api/pom.xml
@@ -31,8 +31,8 @@
<version>0.0.1-SNAPSHOT</version>
<properties>
- <maven.compiler.source>1.8</maven.compiler.source>
- <maven.compiler.target>1.8</maven.compiler.target>
+ <maven.compiler.source>17</maven.compiler.source>
+ <maven.compiler.target>17</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
diff --git a/10-task/dubbo-samples-shop/dubbo-samples-shop-frontend/Dockerfile
b/10-task/dubbo-samples-shop/dubbo-samples-shop-frontend/Dockerfile
new file mode 100644
index 000000000..e0c5ba721
--- /dev/null
+++ b/10-task/dubbo-samples-shop/dubbo-samples-shop-frontend/Dockerfile
@@ -0,0 +1,4 @@
+FROM openjdk:17-jdk-alpine
+COPY ./target/*.jar /appruntime/app.jar
+WORKDIR /appruntime
+ENTRYPOINT ["java","-jar","/appruntime/app.jar"]
\ No newline at end of file
diff --git a/10-task/dubbo-samples-shop/dubbo-samples-shop-frontend/pom.xml
b/10-task/dubbo-samples-shop/dubbo-samples-shop-frontend/pom.xml
index efb465447..d78ee97ea 100644
--- a/10-task/dubbo-samples-shop/dubbo-samples-shop-frontend/pom.xml
+++ b/10-task/dubbo-samples-shop/dubbo-samples-shop-frontend/pom.xml
@@ -33,11 +33,11 @@
<description>Dubbo Task - Shop - FrontEnd</description>
<properties>
- <maven.compiler.source>1.8</maven.compiler.source>
- <maven.compiler.target>1.8</maven.compiler.target>
+ <maven.compiler.source>17</maven.compiler.source>
+ <maven.compiler.target>17</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
- <dubbo.version>3.3.1</dubbo.version>
+ <dubbo.version>3.2.16</dubbo.version>
<nacos.version>2.2.0</nacos.version>
</properties>
@@ -79,6 +79,18 @@
<version>${dubbo.version}</version>
</dependency>
+ <dependency>
+ <groupId>org.apache.dubbo</groupId>
+
<artifactId>dubbo-spring-boot-tracing-otel-otlp-starter</artifactId>
+ <version>${dubbo.version}</version>
+ </dependency>
+
+ <dependency>
+ <groupId>org.apache.dubbo</groupId>
+ <artifactId>dubbo-spring-boot-observability-starter</artifactId>
+ <version>${dubbo.version}</version>
+ </dependency>
+
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter</artifactId>
@@ -99,6 +111,12 @@
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
+
+ <dependency>
+ <groupId>org.springframework.boot</groupId>
+ <artifactId>spring-boot-starter-actuator</artifactId>
+ </dependency>
+
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-freemarker</artifactId>
@@ -127,7 +145,7 @@
<version>3.2.1</version>
<configuration>
<to>
-
<image>apache/dubbo-demo:dubbo-samples-shop-frontend_0.0.1</image>
+
<image>apache/dubbo-demo:dubbo-samples-shop-frontend_0.0.2</image>
</to>
<container>
<jvmFlags>
diff --git
a/10-task/dubbo-samples-shop/dubbo-samples-shop-frontend/src/main/resources/application.properties
b/10-task/dubbo-samples-shop/dubbo-samples-shop-frontend/src/main/resources/application.properties
index 9ab948ddf..4fd991099 100644
---
a/10-task/dubbo-samples-shop/dubbo-samples-shop-frontend/src/main/resources/application.properties
+++
b/10-task/dubbo-samples-shop/dubbo-samples-shop-frontend/src/main/resources/application.properties
@@ -14,6 +14,7 @@
# limitations under the License.
# Specify the application name of Dubbo
+spring.application.name=shop-frontend
dubbo.application.name=shop-frontend
# Specify the QoS port
diff --git a/10-task/dubbo-samples-shop/dubbo-samples-shop-order-api/pom.xml
b/10-task/dubbo-samples-shop/dubbo-samples-shop-order-api/pom.xml
index 4080b4915..cb31f8151 100644
--- a/10-task/dubbo-samples-shop/dubbo-samples-shop-order-api/pom.xml
+++ b/10-task/dubbo-samples-shop/dubbo-samples-shop-order-api/pom.xml
@@ -34,8 +34,8 @@
<description>Dubbo Task - Shop - Order's API</description>
<properties>
- <maven.compiler.source>1.8</maven.compiler.source>
- <maven.compiler.target>1.8</maven.compiler.target>
+ <maven.compiler.source>17</maven.compiler.source>
+ <maven.compiler.target>17</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
</project>
diff --git
a/10-task/dubbo-samples-shop/dubbo-samples-shop-order-gray/Dockerfile
b/10-task/dubbo-samples-shop/dubbo-samples-shop-order-gray/Dockerfile
new file mode 100644
index 000000000..e0c5ba721
--- /dev/null
+++ b/10-task/dubbo-samples-shop/dubbo-samples-shop-order-gray/Dockerfile
@@ -0,0 +1,4 @@
+FROM openjdk:17-jdk-alpine
+COPY ./target/*.jar /appruntime/app.jar
+WORKDIR /appruntime
+ENTRYPOINT ["java","-jar","/appruntime/app.jar"]
\ No newline at end of file
diff --git a/10-task/dubbo-samples-shop/dubbo-samples-shop-order-gray/pom.xml
b/10-task/dubbo-samples-shop/dubbo-samples-shop-order-gray/pom.xml
index d9b3c7bcc..1ebf62fe5 100644
--- a/10-task/dubbo-samples-shop/dubbo-samples-shop-order-gray/pom.xml
+++ b/10-task/dubbo-samples-shop/dubbo-samples-shop-order-gray/pom.xml
@@ -33,11 +33,11 @@
<description>Dubbo Task - Shop - Order - Gray</description>
<properties>
- <maven.compiler.source>1.8</maven.compiler.source>
- <maven.compiler.target>1.8</maven.compiler.target>
+ <maven.compiler.source>17</maven.compiler.source>
+ <maven.compiler.target>17</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
- <dubbo.version>3.3.1</dubbo.version>
+ <dubbo.version>3.2.16</dubbo.version>
<nacos.version>2.2.0</nacos.version>
</properties>
@@ -56,6 +56,18 @@
<version>${nacos.version}</version>
</dependency>
+ <dependency>
+ <groupId>org.apache.dubbo</groupId>
+
<artifactId>dubbo-spring-boot-tracing-otel-otlp-starter</artifactId>
+ <version>${dubbo.version}</version>
+ </dependency>
+
+ <dependency>
+ <groupId>org.apache.dubbo</groupId>
+ <artifactId>dubbo-spring-boot-observability-starter</artifactId>
+ <version>${dubbo.version}</version>
+ </dependency>
+
<!-- dubbo dependency-->
<dependency>
<groupId>org.apache.dubbo</groupId>
@@ -102,7 +114,7 @@
<version>3.2.1</version>
<configuration>
<to>
-
<image>apache/dubbo-demo:dubbo-samples-shop-order_gray_0.0.1</image>
+
<image>apache/dubbo-demo:dubbo-samples-shop-order_gray_0.0.2</image>
</to>
<container>
<jvmFlags>
diff --git a/10-task/dubbo-samples-shop/dubbo-samples-shop-order-v1/Dockerfile
b/10-task/dubbo-samples-shop/dubbo-samples-shop-order-v1/Dockerfile
new file mode 100644
index 000000000..e0c5ba721
--- /dev/null
+++ b/10-task/dubbo-samples-shop/dubbo-samples-shop-order-v1/Dockerfile
@@ -0,0 +1,4 @@
+FROM openjdk:17-jdk-alpine
+COPY ./target/*.jar /appruntime/app.jar
+WORKDIR /appruntime
+ENTRYPOINT ["java","-jar","/appruntime/app.jar"]
\ No newline at end of file
diff --git a/10-task/dubbo-samples-shop/dubbo-samples-shop-order-v1/pom.xml
b/10-task/dubbo-samples-shop/dubbo-samples-shop-order-v1/pom.xml
index 9aed9964d..723db897d 100644
--- a/10-task/dubbo-samples-shop/dubbo-samples-shop-order-v1/pom.xml
+++ b/10-task/dubbo-samples-shop/dubbo-samples-shop-order-v1/pom.xml
@@ -33,11 +33,11 @@
<description>Dubbo Task - Shop - Order - Version 1</description>
<properties>
- <maven.compiler.source>1.8</maven.compiler.source>
- <maven.compiler.target>1.8</maven.compiler.target>
+ <maven.compiler.source>17</maven.compiler.source>
+ <maven.compiler.target>17</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
- <dubbo.version>3.3.1</dubbo.version>
+ <dubbo.version>3.2.16</dubbo.version>
<nacos.version>2.2.0</nacos.version>
</properties>
@@ -63,6 +63,18 @@
<version>${dubbo.version}</version>
</dependency>
+ <dependency>
+ <groupId>org.apache.dubbo</groupId>
+
<artifactId>dubbo-spring-boot-tracing-otel-otlp-starter</artifactId>
+ <version>${dubbo.version}</version>
+ </dependency>
+
+ <dependency>
+ <groupId>org.apache.dubbo</groupId>
+ <artifactId>dubbo-spring-boot-observability-starter</artifactId>
+ <version>${dubbo.version}</version>
+ </dependency>
+
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter</artifactId>
@@ -102,7 +114,7 @@
<version>3.2.1</version>
<configuration>
<to>
-
<image>apache/dubbo-demo:dubbo-samples-shop-order_v1_0.0.1</image>
+
<image>apache/dubbo-demo:dubbo-samples-shop-order_v1_0.0.2</image>
</to>
<container>
<jvmFlags>
diff --git a/10-task/dubbo-samples-shop/dubbo-samples-shop-order-v2/Dockerfile
b/10-task/dubbo-samples-shop/dubbo-samples-shop-order-v2/Dockerfile
new file mode 100644
index 000000000..e0c5ba721
--- /dev/null
+++ b/10-task/dubbo-samples-shop/dubbo-samples-shop-order-v2/Dockerfile
@@ -0,0 +1,4 @@
+FROM openjdk:17-jdk-alpine
+COPY ./target/*.jar /appruntime/app.jar
+WORKDIR /appruntime
+ENTRYPOINT ["java","-jar","/appruntime/app.jar"]
\ No newline at end of file
diff --git a/10-task/dubbo-samples-shop/dubbo-samples-shop-order-v2/pom.xml
b/10-task/dubbo-samples-shop/dubbo-samples-shop-order-v2/pom.xml
index 40870b1d9..30e1a9c0c 100644
--- a/10-task/dubbo-samples-shop/dubbo-samples-shop-order-v2/pom.xml
+++ b/10-task/dubbo-samples-shop/dubbo-samples-shop-order-v2/pom.xml
@@ -33,11 +33,11 @@
<description>Dubbo Task - Shop - Order - Version 2</description>
<properties>
- <maven.compiler.source>1.8</maven.compiler.source>
- <maven.compiler.target>1.8</maven.compiler.target>
+ <maven.compiler.source>17</maven.compiler.source>
+ <maven.compiler.target>17</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
- <dubbo.version>3.3.1</dubbo.version>
+ <dubbo.version>3.2.16</dubbo.version>
<nacos.version>2.2.0</nacos.version>
</properties>
@@ -61,6 +61,18 @@
<version>${nacos.version}</version>
</dependency>
+ <dependency>
+ <groupId>org.apache.dubbo</groupId>
+
<artifactId>dubbo-spring-boot-tracing-otel-otlp-starter</artifactId>
+ <version>${dubbo.version}</version>
+ </dependency>
+
+ <dependency>
+ <groupId>org.apache.dubbo</groupId>
+ <artifactId>dubbo-spring-boot-observability-starter</artifactId>
+ <version>${dubbo.version}</version>
+ </dependency>
+
<!-- dubbo dependency-->
<dependency>
<groupId>org.apache.dubbo</groupId>
@@ -107,7 +119,7 @@
<version>3.2.1</version>
<configuration>
<to>
-
<image>apache/dubbo-demo:dubbo-samples-shop-order_v2_0.0.1</image>
+
<image>apache/dubbo-demo:dubbo-samples-shop-order_v2_0.0.2</image>
</to>
<container>
<jvmFlags>
diff --git a/10-task/dubbo-samples-shop/dubbo-samples-shop-user-api/pom.xml
b/10-task/dubbo-samples-shop/dubbo-samples-shop-user-api/pom.xml
index bf51abc30..b018aad14 100644
--- a/10-task/dubbo-samples-shop/dubbo-samples-shop-user-api/pom.xml
+++ b/10-task/dubbo-samples-shop/dubbo-samples-shop-user-api/pom.xml
@@ -34,8 +34,8 @@
<description>Dubbo Task - Shop - User's API</description>
<properties>
- <maven.compiler.source>1.8</maven.compiler.source>
- <maven.compiler.target>1.8</maven.compiler.target>
+ <maven.compiler.source>17</maven.compiler.source>
+ <maven.compiler.target>17</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
</project>
diff --git a/10-task/dubbo-samples-shop/dubbo-samples-shop-user-gray/Dockerfile
b/10-task/dubbo-samples-shop/dubbo-samples-shop-user-gray/Dockerfile
new file mode 100644
index 000000000..0c6c894e9
--- /dev/null
+++ b/10-task/dubbo-samples-shop/dubbo-samples-shop-user-gray/Dockerfile
@@ -0,0 +1,9 @@
+#FROM maven:3.9.6-amazoncorretto-17 AS builder
+#COPY . /appbuild
+#WORKDIR /appbuild
+#
+#RUN mvn clean package -DskipTests -f pom.xml
+FROM openjdk:17-jdk-alpine
+COPY ./target/*.jar /appruntime/app.jar
+WORKDIR /appruntime
+ENTRYPOINT ["java","-jar","/appruntime/app.jar"]
\ No newline at end of file
diff --git a/10-task/dubbo-samples-shop/dubbo-samples-shop-user-gray/pom.xml
b/10-task/dubbo-samples-shop/dubbo-samples-shop-user-gray/pom.xml
index d9a6e3fac..7b834491d 100644
--- a/10-task/dubbo-samples-shop/dubbo-samples-shop-user-gray/pom.xml
+++ b/10-task/dubbo-samples-shop/dubbo-samples-shop-user-gray/pom.xml
@@ -33,11 +33,11 @@
<description>Dubbo Task - Shop - User Gray</description>
<properties>
- <maven.compiler.source>1.8</maven.compiler.source>
- <maven.compiler.target>1.8</maven.compiler.target>
+ <maven.compiler.source>17</maven.compiler.source>
+ <maven.compiler.target>17</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
- <dubbo.version>3.3.1</dubbo.version>
+ <dubbo.version>3.2.16</dubbo.version>
<nacos.version>2.2.0</nacos.version>
</properties>
@@ -56,6 +56,18 @@
<version>${nacos.version}</version>
</dependency>
+ <dependency>
+ <groupId>org.apache.dubbo</groupId>
+
<artifactId>dubbo-spring-boot-tracing-otel-otlp-starter</artifactId>
+ <version>${dubbo.version}</version>
+ </dependency>
+
+ <dependency>
+ <groupId>org.apache.dubbo</groupId>
+ <artifactId>dubbo-spring-boot-observability-starter</artifactId>
+ <version>${dubbo.version}</version>
+ </dependency>
+
<!-- dubbo dependency-->
<dependency>
<groupId>org.apache.dubbo</groupId>
@@ -102,7 +114,7 @@
<version>3.2.1</version>
<configuration>
<to>
-
<image>apache/dubbo-demo:dubbo-samples-shop-user_gray_0.0.1</image>
+
<image>apache/dubbo-demo:dubbo-samples-shop-user_gray_0.0.2</image>
</to>
<container>
<jvmFlags>
diff --git a/10-task/dubbo-samples-shop/dubbo-samples-shop-user/Dockerfile
b/10-task/dubbo-samples-shop/dubbo-samples-shop-user/Dockerfile
new file mode 100644
index 000000000..e0c5ba721
--- /dev/null
+++ b/10-task/dubbo-samples-shop/dubbo-samples-shop-user/Dockerfile
@@ -0,0 +1,4 @@
+FROM openjdk:17-jdk-alpine
+COPY ./target/*.jar /appruntime/app.jar
+WORKDIR /appruntime
+ENTRYPOINT ["java","-jar","/appruntime/app.jar"]
\ No newline at end of file
diff --git a/10-task/dubbo-samples-shop/dubbo-samples-shop-user/pom.xml
b/10-task/dubbo-samples-shop/dubbo-samples-shop-user/pom.xml
index 4edad6485..f30ac9259 100644
--- a/10-task/dubbo-samples-shop/dubbo-samples-shop-user/pom.xml
+++ b/10-task/dubbo-samples-shop/dubbo-samples-shop-user/pom.xml
@@ -33,11 +33,11 @@
<description>Dubbo Task - Shop - User</description>
<properties>
- <maven.compiler.source>1.8</maven.compiler.source>
- <maven.compiler.target>1.8</maven.compiler.target>
+ <maven.compiler.source>17</maven.compiler.source>
+ <maven.compiler.target>17</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
- <dubbo.version>3.3.1</dubbo.version>
+ <dubbo.version>3.2.16</dubbo.version>
<nacos.version>2.2.0</nacos.version>
</properties>
@@ -49,13 +49,25 @@
<version>${project.version}</version>
</dependency>
- <!-- registry dependency -->
+ <!-- registry dependency -->
<dependency>
<groupId>com.alibaba.nacos</groupId>
<artifactId>nacos-client</artifactId>
<version>${nacos.version}</version>
</dependency>
+ <dependency>
+ <groupId>org.apache.dubbo</groupId>
+
<artifactId>dubbo-spring-boot-tracing-otel-otlp-starter</artifactId>
+ <version>${dubbo.version}</version>
+ </dependency>
+
+ <dependency>
+ <groupId>org.apache.dubbo</groupId>
+ <artifactId>dubbo-spring-boot-observability-starter</artifactId>
+ <version>${dubbo.version}</version>
+ </dependency>
+
<!-- dubbo dependency-->
<dependency>
<groupId>org.apache.dubbo</groupId>
@@ -74,6 +86,7 @@
</exclusions>
</dependency>
+
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-log4j2</artifactId>
@@ -102,7 +115,7 @@
<version>3.2.1</version>
<configuration>
<to>
-
<image>apache/dubbo-demo:dubbo-samples-shop-user_0.0.1</image>
+
<image>apache/dubbo-demo:dubbo-samples-shop-user_0.0.2</image>
</to>
<container>
<jvmFlags>
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]