You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@servicecomb.apache.org by GitBox <gi...@apache.org> on 2018/03/09 12:13:04 UTC
[GitHub] WillemJiang closed pull request #579: [SCB-29] add README document for config-apollo
WillemJiang closed pull request #579: [SCB-29] add README document for config-apollo
URL: https://github.com/apache/incubator-servicecomb-java-chassis/pull/579
This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:
As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):
diff --git a/samples/config-apollo-sample/README.md b/samples/config-apollo-sample/README.md
new file mode 100644
index 000000000..398b82676
--- /dev/null
+++ b/samples/config-apollo-sample/README.md
@@ -0,0 +1,42 @@
+## Use Apollo as Configuration Center
+
+To use Apollo as configuration source in ServiceComb Java Chassis services:
+
+* Start Apollo service and create a project to associate with Chassis service, then generate a token
+
+ [How to use Apollo configuration center](http://servicecomb.incubator.apache.org/cn/users/dynamic-config/)
+
+
+* Import `config-apollo` in pom:
+
+ ```xml
+ <dependency>
+ <groupId>org.apache.servicecomb</groupId>
+ <artifactId>config-apollo</artifactId>
+ </dependency>
+ ```
+
+* Configurations for Apollo itself in `microservice.yaml`, for example:
+
+ ```yaml
+ apollo:
+ config:
+ serverUri: http://127.0.0.1:8070 #Apollo portal server address
+ serviceName: apollo-test #service name
+ env: DEV #default valueDEV
+ clusters: test-cluster #default value default
+ namespace: application #default value application
+ token: #get token from Apollo web pages
+ ```
+
+* Start Chassis service and update configurations in Apollo portal service.
+
+ [Need to start service center first](http://servicecomb.incubator.apache.org/users/setup-environment/#)
+
+
+## More
+
+[Apollo Doc](https://github.com/ctripcorp/apollo/wiki)
+
+[Use Apollo In ServiceComb](http://servicecomb.incubator.apache.org/cn/users/dynamic-config/)
+
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services