A dubbo demo running on Alauda Cloud.
Dockerfile in docker-admin
See: dubbo 2.5.3 环境搭建
unzip dubbo-admin-2.5.3.war -d ./ROOT
cd docker-admin docker build -t index.alauda.cn/claas/dubbo:alpine-jre8-tomcat8-dubbo2.5.3 .
Code in dubbo-demo.
Thanks to binblee on github.
cd dubbo-demo mvn clean package
cd dubbo-demo/service-producer docker build -t index.alauda.cn/claas/dubbo-demo-provider:dubbo2.5.3 .
cd dubbo-demo/service-consumer docker build -t index.alauda.cn/claas/dubbo-demo-consumer:dubbo2.5.3 .
Use dubbo.yml as template to create an application on Alauda Cloud.
- 3 nodes
- host network mode
- Use IP address's of your own physical or virtual machines
- 2 nodes
- flannel network mode
- Default root password is root, or specify your own:
DUBBO_ROOT_PASSWORD=yourposs
- Default guest password is guest, or specify your own:
DUBBO_GUEST_PASSWORD=yourposs
- Use the following style for environment variable ZK_URL:
ZK_URL=zoo1:2181?backup=zoo2:2181,zoo3:2181
ZK_URL=zoo1:2181
- NOT USE the follows for ZK_URL:
ZK_URL=zoo1:2181,zoo2:2181,zoo3:2181
- 1 node respectively
- flannel network mode
- Use ZK_URL:
ZK_URL=zoo1:2181,zoo2:2181,zoo3:2181
ZK_URL=zoo1:2181
- The links statements indicate dependency relationship among services defined in dubbo.yml. Use Strict Mode to create your application on Alauda Cloud.
create a ssh tunnel to the K8s master node mastering your dubbo-admin pod.
ssh -L 8080:10.20.0.9:8080 [email protected]
Open your browser to visit:
http://localhost:8080/