- Redis 3.2 (or newer)
- Maven v3.0.*(or newer)
- Java 1.8
- SpringCloud Finchley.RELEASE
- SpringBoot 2.0.3.RELEASE
- Jib 0.9.6
- Zipkin 2.11
docker run -d -p 6379:6379 redis
docker run -d -p 9411:9411 openzipkin/zipkin
git clone https://github.com/sugare/Weather.git
cd Weather
cd microservice-k8s-template
in mac
for i in *;do sed -i "" 's#test.caicloudprivatetest.com/library#sugare#g' $i;done
in linux
for i in *;do sed -i 's#test.caicloudprivatetest.com/library#sugare#g' $i;done
kubectl create -f ./
kubectl get pods | egrep -v "redis|eureka|collection|data|zuul|report"
kubectl get svc | egrep -v "redis|eureka|collection|data|zuul|report"
http://<master-ip>:30083/report/cityId/101010500