Skip to content

Commit

Permalink
update demo
Browse files Browse the repository at this point in the history
  • Loading branch information
chickenlj committed Jul 9, 2024
1 parent 624463a commit da8efa0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions dubbo-demo/dubbo-demo-xds/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,20 +9,20 @@
* Then, install istio following [installation guide](https://istio.io/latest/docs/setup/getting-started/)
* Use `kubectl get pods -n istio-system` to check if istio is installed correctly.

* If you are not using docker desktop, you need to install docker to build and manage image.

## Remote Deployment
Run the following command to deploy pre-prepared images:

```shell
kubectl apply -f
kubectl apply -f ./services_remote.yaml
```

## Local Development
If you have code changed locally and want to deploy it to remote cluster, follow the instructions below to learn how to build and deploy from source code.

### Deploy Example
> Use `docker run -d -p 5000:5000 --name local-registry registry:2` to enable local image repository.
> * If you are not using docker desktop, you need to install docker to build and manage image.
> * Use `docker run -d -p 5000:5000 --name local-registry registry:2` to enable local image repository.
**When you have completed the above steps:**
* Run `chmod 777 ./start.sh ./update.sh`
Expand Down
8 changes: 4 additions & 4 deletions dubbo-demo/dubbo-demo-xds/services_remote.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -59,14 +59,14 @@ spec:
serviceAccountName: dubbo-demo-xds-consumer
containers:
- name: dubbo-demo-xds-consumer
image: localhost:5000/dubbo-demo-xds-consumer:latest
image: registry.cn-hangzhou.aliyuncs.com/apache-dubbo/xds-demo-consumer:latest
imagePullPolicy: Always
ports:
- containerPort: 50050
- containerPort: 31000 #for JVM remote debug
env:
- name: JAVA_TOOL_OPTIONS
value: "-agentlib:jdwp=transport=dt_socket,server=y,suspend=y,address=31000"
value: "-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=31000"
replicas: 1

---
Expand All @@ -92,14 +92,14 @@ spec:
serviceAccountName: dubbo-demo-xds-provider
containers:
- name: dubbo-demo-xds-provider
image: localhost:5000/dubbo-demo-xds-provider:latest
image: registry.cn-hangzhou.aliyuncs.com/apache-dubbo/xds-demo-provider:latest
imagePullPolicy: Always
ports:
- containerPort: 50051 #for JVM remote debug
- containerPort: 31001
env:
- name: JAVA_TOOL_OPTIONS
value: "-agentlib:jdwp=transport=dt_socket,server=y,suspend=y,address=31001"
value: "-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=31001"

replicas: 1

Expand Down

0 comments on commit da8efa0

Please sign in to comment.