From f5448d5831a3df6dfe51e3fea733f2489386633e Mon Sep 17 00:00:00 2001 From: ycz008 Date: Thu, 11 Apr 2024 17:06:25 +0800 Subject: [PATCH] update prod nacos --- prod-upgrade/nacos/nacos-no-pvc.yaml | 79 ++++++++++++++-------------- 1 file changed, 39 insertions(+), 40 deletions(-) diff --git a/prod-upgrade/nacos/nacos-no-pvc.yaml b/prod-upgrade/nacos/nacos-no-pvc.yaml index 73d60af..f613a41 100644 --- a/prod-upgrade/nacos/nacos-no-pvc.yaml +++ b/prod-upgrade/nacos/nacos-no-pvc.yaml @@ -1,41 +1,3 @@ -apiVersion: v1 -kind: Service -metadata: - name: nacos-public - labels: - app: nacos -spec: - type: NodePort - selector: - app: nacos - ports: - - port: 8848 - name: server - targetPort: 8848 - nodePort: 30848 - - port: 9848 - name: client-rpc - targetPort: 9848 - nodePort: 30948 ---- -apiVersion: v1 -kind: Service -metadata: - name: nacos - labels: - app: nacos -spec: - type: ClusterIP - selector: - app: nacos - ports: - - port: 8848 - name: server - targetPort: 8848 - - port: 9848 - name: client-rpc - targetPort: 9848 - --- apiVersion: v1 kind: ConfigMap @@ -123,8 +85,6 @@ spec: key: mysql.password - name: MYSQL_SERVICE_DB_PARAM value: "characterEncoding=utf8&connectTimeout=10000&socketTimeout=30000&autoReconnect=true&useUnicode=true&useSSL=false&serverTimezone=UTC&allowPublicKeyRetrieval=true" - - name: SPRING_DATASOURCE_PLATFORM - value: "mysql" - name: MODE value: "cluster" - name: NACOS_SERVER_PORT @@ -141,3 +101,42 @@ spec: value: "SSBhbSB0aGUgc3RhZmYgb2Ygd3d3LmJlYWNvbmZpcmVpbmMuY29tCg==" - name: NACOS_AUTH_IDENTITY_VALUE value: "SSBhbSB0aGUgc3RhZmYgb2Ygd3d3LmJlYWNvbmZpcmVpbmMuY29tCg==" +--- +apiVersion: v1 +kind: Service +metadata: + name: nacos-public + labels: + app: nacos +spec: + type: NodePort + selector: + app: nacos + ports: + - port: 8848 + name: server + targetPort: 8848 + nodePort: 30848 + - port: 9848 + name: client-rpc + targetPort: 9848 + nodePort: 30948 +--- +apiVersion: v1 +kind: Service +metadata: + name: nacos + labels: + app: nacos +spec: + type: ClusterIP + selector: + app: nacos + ports: + - port: 8848 + name: server + targetPort: 8848 + - port: 9848 + name: client-rpc + targetPort: 9848 +