Skip to content

Commit

Permalink
Upgrade readme
Browse files Browse the repository at this point in the history
  • Loading branch information
yejingtao committed Jul 25, 2019
1 parent ea5e7bc commit 30df363
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,26 @@ To start the JVM in debug mode, set the Java system property `DEBUG=true`:
The JVM will then listen for a debugger to be attached on port 7102. The JVM will _not_ wait for
the debugger to be attached before starting Clouddriver; the relevant JVM arguments can be seen and
modified as needed in `build.gradle`.

### Added by 叶静涛

修复了spinnaker对接AWS中国区不可用的几个问题

问题1:竟价地址请求错误
com.netflix.spinnaker.clouddriver.aws.provider.agent.AmazonInstanceTypeCachingAgent
问题2:没有根据区域设置合适的endpoint,默认的sts.amazonaws.com无法认证cn-north-1
com.netflix.spinnaker.clouddriver.aws.security.NetflixSTSAssumeRoleSessionCredentialsProvider
PS:目前先硬编码为北京1区,后续做优化
问题3:assumeRole全称的生成未考虑中国区的特殊性,以致中国区的assumeRole全称错误
解决方案:assumeRole必须使用全称,即arn:aws-cn:iam::048625849086:role/spinnakerManaged

源码启动方式:
```
nohup sh -c "./gradlew --daemon 2>&1 | tee /tmp//clouddriver.log | cat >/dev/null" >/dev/null &
```

如果需要jvm远程调试:
```
nohup sh -c "./gradlew -DDEBUG=true --daemon 2>&1 | tee /tmp//clouddriver.log | cat >/dev/null" >/dev/null &
```
调试端口7102

0 comments on commit 30df363

Please sign in to comment.