作者 唐旭辉

k8s 部署配置修改

1 FROM golang:1.13 as builder 1 FROM golang:1.13 as builder
2 2
3 -ENV GOPROXY https://goproxy.cn 3 +# ENV GOPROXY https://goproxy.cn
4 ENV GOPATH /go 4 ENV GOPATH /go
5 ENV APP_DIR $GOPATH/src/oppmg 5 ENV APP_DIR $GOPATH/src/oppmg
6 # Recompile the standard library without CGO 6 # Recompile the standard library without CGO
1 #app的名称 1 #app的名称
2 appname = ability 2 appname = ability
3 #运行模式 3 #运行模式
4 -runmode =${ProRunMode||local} 4 +runmode =${ProRunMode||prod}
5 #是否自动渲染页面 5 #是否自动渲染页面
6 autorender = false 6 autorender = false
7 #是否复制请求body 7 #是否复制请求body
@@ -17,8 +17,9 @@ mysql_host = "${MYSQL_HOST||115.29.205.99}" @@ -17,8 +17,9 @@ mysql_host = "${MYSQL_HOST||115.29.205.99}"
17 mysql_port = "${MYSQL_PORT||3306}" 17 mysql_port = "${MYSQL_PORT||3306}"
18 mysql_db_name = "${MYSQL_DB_NAME||opportunity}" 18 mysql_db_name = "${MYSQL_DB_NAME||opportunity}"
19 ##redis相关配置 19 ##redis相关配置
20 -redis_add_port = "192.168.100.102:6379"  
21 -redis_auth = "123456" 20 +redis_add = "${REDIS_HOST||121.0.0.1}"
  21 +redis_add_port = "${REDIS_PORT||6379}"
  22 +redis_auth = ""
22 ##log相关配置 23 ##log相关配置
23 ##out_put:"console","file" 24 ##out_put:"console","file"
24 log_output = "file" 25 log_output = "file"
@@ -17,8 +17,10 @@ mysql_host = "${MYSQL_HOST||127.0.0.1}" @@ -17,8 +17,10 @@ mysql_host = "${MYSQL_HOST||127.0.0.1}"
17 mysql_port = "${MYSQL_PORT||3306}" 17 mysql_port = "${MYSQL_PORT||3306}"
18 mysql_db_name = "${MYSQL_DB_NAME||opportunity}" 18 mysql_db_name = "${MYSQL_DB_NAME||opportunity}"
19 ##redis相关配置 19 ##redis相关配置
20 -redis_add_port = "127.0.0.1:6379" 20 +redis_add = "127.0.0.1"
  21 +redis_add_port = "6379"
21 redis_auth = "" 22 redis_auth = ""
  23 +
22 ##log相关配置 24 ##log相关配置
23 ##out_put:"console","file" 25 ##out_put:"console","file"
24 log_output = "file" 26 log_output = "file"
@@ -87,7 +87,7 @@ spec: @@ -87,7 +87,7 @@ spec:
87 - name: MYSQL_DB_NAME 87 - name: MYSQL_DB_NAME
88 value: "opportunity_dev" 88 value: "opportunity_dev"
89 - name: RUN_MODE 89 - name: RUN_MODE
90 - value: "test" 90 + value: "dev"
91 - name: LOG_LEVEL 91 - name: LOG_LEVEL
92 value: "debug" 92 value: "debug"
93 - name: aliyun_logs_suplusfile 93 - name: aliyun_logs_suplusfile