作者 唐旭辉

k8s 部署配置修改

FROM golang:1.13 as builder
ENV GOPROXY https://goproxy.cn
# ENV GOPROXY https://goproxy.cn
ENV GOPATH /go
ENV APP_DIR $GOPATH/src/oppmg
# Recompile the standard library without CGO
... ...
#app的名称
appname = ability
#运行模式
runmode =${ProRunMode||local}
runmode =${ProRunMode||prod}
#是否自动渲染页面
autorender = false
#是否复制请求body
... ...
... ... @@ -17,8 +17,9 @@ mysql_host = "${MYSQL_HOST||115.29.205.99}"
mysql_port = "${MYSQL_PORT||3306}"
mysql_db_name = "${MYSQL_DB_NAME||opportunity}"
##redis相关配置
redis_add_port = "192.168.100.102:6379"
redis_auth = "123456"
redis_add = "${REDIS_HOST||121.0.0.1}"
redis_add_port = "${REDIS_PORT||6379}"
redis_auth = ""
##log相关配置
##out_put:"console","file"
log_output = "file"
... ...
... ... @@ -17,8 +17,10 @@ mysql_host = "${MYSQL_HOST||127.0.0.1}"
mysql_port = "${MYSQL_PORT||3306}"
mysql_db_name = "${MYSQL_DB_NAME||opportunity}"
##redis相关配置
redis_add_port = "127.0.0.1:6379"
redis_add = "127.0.0.1"
redis_add_port = "6379"
redis_auth = ""
##log相关配置
##out_put:"console","file"
log_output = "file"
... ...
... ... @@ -47,7 +47,7 @@ spec:
image: 192.168.0.243:5000/mmm/oppmg:dev
imagePullPolicy: Always
volumeMounts:
- mountPath: /opt/logs
- mountPath: /opt/logs
name: accesslogs
- mountPath: /var/www/oppmg/file
name: mmmjihuitest-pvc1
... ... @@ -87,7 +87,7 @@ spec:
- name: MYSQL_DB_NAME
value: "opportunity_dev"
- name: RUN_MODE
value: "test"
value: "dev"
- name: LOG_LEVEL
value: "debug"
- name: aliyun_logs_suplusfile
... ... @@ -99,4 +99,4 @@ spec:
emptyDir: {}
- name: mmmjihuitest-pvc1
persistentVolumeClaim:
claimName: mmmjihuitest-pvc
\ No newline at end of file
claimName: mmmjihuitest-pvc
... ...