diff --git a/Dockerfile b/Dockerfile
index 69e4417..fd1cdfb 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -1,3 +1,3 @@
FROM openjdk:8-jdk-alpine
COPY target/jframework.jar /app.jar
-ENTRYPOINT ["java", "-jar", "/app.jar", "-Dfile.encoding=utf-8"]
\ No newline at end of file
+ENTRYPOINT ["java", "-Dfile.encoding=utf-8", "-Xms128m", "-Xmx256m", "-Dapp.id=100001", "-Dapollo.cluster=dev", "-Dapollo.configService=http://192.168.10.160:8880", "-Dapollo.bootstrap.enabled=true", "-jar", "/app.jar"]
\ No newline at end of file
diff --git a/k8s.yml b/k8s.yml
index 716cfc4..c9bffc7 100644
--- a/k8s.yml
+++ b/k8s.yml
@@ -12,7 +12,7 @@
}
},
"spec": {
- "replicas": 1,
+ "replicas": 3,
"selector": {
"matchLabels": {
"k8s-app": "jframework"
@@ -29,7 +29,7 @@
"containers": [
{
"name": "jframework",
- "image": "registry.cn-hangzhou.aliyuncs.com/suxiaolin/jframework:latest",
+ "image": "#image#",
"readinessProbe": {
"httpGet": {
"scheme": "HTTP",
diff --git a/pom.xml b/pom.xml
index 66f0ee1..4f584fa 100644
--- a/pom.xml
+++ b/pom.xml
@@ -140,6 +140,12 @@
javase
3.3.0
+
+
+ com.ctrip.framework.apollo
+ apollo-client
+ 1.1.0
+
@@ -149,64 +155,6 @@
org.springframework.boot
spring-boot-maven-plugin
-
-
- org.apache.maven.plugins
- maven-source-plugin
- 2.2.1
-
-
- attach-sources
-
- jar-no-fork
-
-
-
-
-
-
- org.apache.maven.plugins
- maven-javadoc-plugin
- 2.9.1
-
-
- attach-javadocs
-
- jar
-
-
- -Xdoclint:none
-
-
-
-
-
-
- org.apache.maven.plugins
- maven-gpg-plugin
- 1.6
-
-
- sign-artifacts
- verify
-
- sign
-
-
-
-
-
-
- org.sonatype.plugins
- nexus-staging-maven-plugin
- 1.6.7
- true
-
- oss
- https://oss.sonatype.org/
- true
-
-
diff --git a/src/main/java/com/github/neatlife/jframework/JframeworkApplication.java b/src/main/java/com/github/neatlife/jframework/JframeworkApplication.java
index 1b50b16..8c7162a 100644
--- a/src/main/java/com/github/neatlife/jframework/JframeworkApplication.java
+++ b/src/main/java/com/github/neatlife/jframework/JframeworkApplication.java
@@ -1,5 +1,6 @@
package com.github.neatlife.jframework;
+import com.ctrip.framework.apollo.spring.annotation.EnableApolloConfig;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@@ -7,6 +8,7 @@
* @author suxiaolin
*/
@SpringBootApplication
+@EnableApolloConfig
public class JframeworkApplication {
public static void main(String[] args) {