Compare commits

...

1 Commits

Author SHA1 Message Date
zhoushx1018 e566b7278d update: 新增环境变量 3 years ago
  1. 45
      deployK8s.yaml

45
deployK8s.yaml

@ -42,6 +42,51 @@ spec:
- name: aliyun-acr-secret
containers:
- env:
- name: MYSQL_HOST
valueFrom:
secretKeyRef:
key: host
name: mysql
- name: MYSQL_PORT
valueFrom:
secretKeyRef:
key: port
name: mysql
- name: MYSQL_DB_NAME
valueFrom:
secretKeyRef:
key: db_name
name: mysql
- name: MYSQL_USER
valueFrom:
secretKeyRef:
key: user
name: mysql
- name: MYSQL_PASSWORD
valueFrom:
secretKeyRef:
key: password
name: mysql
- name: REDIS_HOST
valueFrom:
secretKeyRef:
key: host
name: redis
- name: REDIS_PORT
valueFrom:
secretKeyRef:
key: port
name: redis
- name: REDIS_USER
valueFrom:
secretKeyRef:
key: user
name: redis
- name: REDIS_PASSWORD
valueFrom:
secretKeyRef:
key: password
name: redis
- name: aliyun_logs_log-$K8S_DEPLOY_PARAM_RESOURCE_SUFFIX
value: stdout
name: $K8S_DEPLOY_PARAM_CURR_MODEL_NAME-$K8S_DEPLOY_PARAM_RESOURCE_SUFFIX

Loading…
Cancel
Save