diff --git a/spring-cloud-alibaba-examples/integrated-example/helm-chart/templates/integrated-mysql.yaml b/spring-cloud-alibaba-examples/integrated-example/helm-chart/templates/integrated-mysql.yaml index 950c72881..c458c3bd5 100644 --- a/spring-cloud-alibaba-examples/integrated-example/helm-chart/templates/integrated-mysql.yaml +++ b/spring-cloud-alibaba-examples/integrated-example/helm-chart/templates/integrated-mysql.yaml @@ -45,21 +45,9 @@ spec: - name: integrated-mysql image: {{ .Values.image.repository }}integrated-mysql imagePullPolicy: Always - env: #以下是设置MySQL数据库的密码 + env: - name: MYSQL_ROOT_PASSWORD value: "123456" ports: - containerPort: 3306 - protocol: TCP -# volumeMounts: -# - name: mysql-persistent-storage -# mountPath: /var/lib/mysql #MySQL容器的数据都是存在这个目录的,要对这个目录做数据持久化 -# - name: config-volume -# mountPath: /etc/mysql/conf.d #mysql 配置 -# volumes: -# - name: mysql-persistent-storage -# persistentVolumeClaim: -# claimName: mysql-pvc #指定pvc的名称 -# - name: config-volume -# configMap: -# name: mysql-config \ No newline at end of file + protocol: TCP \ No newline at end of file diff --git a/spring-cloud-alibaba-examples/integrated-example/helm-chart/templates/integrated-nacos-stand.yaml b/spring-cloud-alibaba-examples/integrated-example/helm-chart/templates/integrated-nacos-stand.yaml index 69de1bfe7..0c3ee7ca2 100644 --- a/spring-cloud-alibaba-examples/integrated-example/helm-chart/templates/integrated-nacos-stand.yaml +++ b/spring-cloud-alibaba-examples/integrated-example/helm-chart/templates/integrated-nacos-stand.yaml @@ -33,7 +33,6 @@ spec: - port: 9849 name: raft-rpc targetPort: 9849 - ## 兼容1.4.x版本的选举端口 - port: 7848 name: old-raft-rpc targetPort: 7848 @@ -56,10 +55,6 @@ kind: Deployment metadata: name: nacos-standalone spec: - #单机模式设置大于1个副本,注册的时候会分配到不同的副本上,web登录查看注册列表的时候, - #只能看到其中一个副本的注册服务,刷新web网页可切换不同的副本,查看到其注册的服务,也就是注册的服务被副本分摊了 - #所以这里多个副本就出现了和集群模式一样的现象了,就是注册服务被注册到不同的nacos上了,需要刷新web页面来访问到 - #不同的nacos服务来查看其注册的服务有哪些,也就是只有一个副本的时候,注册的服务才会全部能看到 replicas: 1 template: metadata: @@ -82,11 +77,6 @@ spec: - name: local-nacos imagePullPolicy: Always image: nacos/nacos-server - #资源不足时,这先不做设置,让其自动分配 - #resources: - # requests: - # memory: "1Gi" - # cpu: "100m" ports: - containerPort: 8848 name: client @@ -97,7 +87,6 @@ spec: - containerPort: 7848 name: old-raft-rpc env: - #设置使用mysql存储,默认是嵌入式存储 - name: SPRING_DATASOURCE_PLATFORM value: "mysql" - name: MYSQL_SERVICE_HOST diff --git a/spring-cloud-alibaba-examples/integrated-example/helm-chart/values.yaml b/spring-cloud-alibaba-examples/integrated-example/helm-chart/values.yaml index 2d122a336..f8321fd1d 100644 --- a/spring-cloud-alibaba-examples/integrated-example/helm-chart/values.yaml +++ b/spring-cloud-alibaba-examples/integrated-example/helm-chart/values.yaml @@ -1,3 +1,2 @@ -# 镜像地址的前缀 image: repository: trevorlink/ \ No newline at end of file