Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
379 changes: 344 additions & 35 deletions 10-task/dubbo-samples-shop/deploy/All.yml

Large diffs are not rendered by default.

230 changes: 0 additions & 230 deletions 10-task/dubbo-samples-shop/deploy/Gray.yml

This file was deleted.

25 changes: 0 additions & 25 deletions 10-task/dubbo-samples-shop/deploy/Namespace.yml

This file was deleted.

43 changes: 19 additions & 24 deletions 10-task/dubbo-samples-shop/deploy/comment-v1-gray/Deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ metadata:
name: shop-comment-v1-gray
namespace: dubbo-demo
spec:
replicas: 3
replicas: 1
selector:
matchLabels:
app: shop-comment
Expand All @@ -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"
43 changes: 19 additions & 24 deletions 10-task/dubbo-samples-shop/deploy/comment-v1/Deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ metadata:
name: shop-comment-v1
namespace: dubbo-demo
spec:
replicas: 3
replicas: 1
selector:
matchLabels:
app: shop-comment
Expand All @@ -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"
Loading
Loading