update prod nacos

main
ycz008 2024-04-11 17:10:16 +08:00
parent 39d4de6eed
commit 362a4bef11
1 changed files with 5 additions and 32 deletions

View File

@ -1,15 +1,3 @@
---
apiVersion: v1
kind: ConfigMap
metadata:
name: nacos-cm
data:
mysql.host: "mysql-nacos.base.svc"
mysql.db.name: "nacos"
mysql.port: 3306
mysql.user: "root"
mysql.password: "Admin@2099"
---
apiVersion: apps/v1
kind: StatefulSet
@ -59,30 +47,15 @@ spec:
- name: NACOS_REPLICAS
value: "3"
- name: MYSQL_SERVICE_HOST
valueFrom:
configMapKeyRef:
name: nacos-cm
key: mysql.host
value: "mysql-nacos.base.svc"
- name: MYSQL_SERVICE_DB_NAME
valueFrom:
configMapKeyRef:
name: nacos-cm
key: mysql.db.name
value: "nacos"
- name: MYSQL_SERVICE_PORT
valueFrom:
configMapKeyRef:
name: nacos-cm
key: mysql.port
value: "3306"
- name: MYSQL_SERVICE_USER
valueFrom:
configMapKeyRef:
name: nacos-cm
key: mysql.user
value: "root"
- name: MYSQL_SERVICE_PASSWORD
valueFrom:
configMapKeyRef:
name: nacos-cm
key: mysql.password
value: "Admin@2099"
- name: MYSQL_SERVICE_DB_PARAM
value: "characterEncoding=utf8&connectTimeout=10000&socketTimeout=30000&autoReconnect=true&useUnicode=true&useSSL=false&serverTimezone=UTC&allowPublicKeyRetrieval=true"
- name: MODE