Skip to content

Commit

Permalink
Compatible with multiple database configurations
Browse files Browse the repository at this point in the history
  • Loading branch information
paderlol committed Dec 28, 2022
1 parent 27422e4 commit e682001
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 2 deletions.
2 changes: 2 additions & 0 deletions deploy/nacos/nacos-no-pvc-ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,8 @@ spec:
value: "8848"
- name: PREFER_HOST_MODE
value: "hostname"
- name: SPRING_DATASOURCE_PLATFORM
value: "mysql"
- name: NACOS_SERVERS
value: "nacos-0.nacos-headless.default.svc.cluster.local:8848 nacos-1.nacos-headless.default.svc.cluster.local:8848 nacos-2.nacos-headless.default.svc.cluster.local:8848"
selector:
Expand Down
5 changes: 3 additions & 2 deletions deploy/nacos/nacos-pvc-ceph.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ spec:
name: old-raft-rpc
env:
- name: NACOS_REPLICAS
value: "2"
value: "3"
- name: SERVICE_NAME
value: "nacos-headless"
- name: DOMAIN_NAME
Expand Down Expand Up @@ -122,7 +122,8 @@ spec:
value: "8848"
- name: NACOS_APPLICATION_PORT
value: "8848"

- name: SPRING_DATASOURCE_PLATFORM
value: "mysql"
- name: PREFER_HOST_MODE
value: "hostname"
volumeMounts:
Expand Down
2 changes: 2 additions & 0 deletions deploy/nacos/nacos-pvc-nfs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,8 @@ spec:
value: "8848"
- name: PREFER_HOST_MODE
value: "hostname"
- name: SPRING_DATASOURCE_PLATFORM
value: "mysql"
volumeMounts:
- name: data
mountPath: /home/nacos/plugins/peer-finder
Expand Down
2 changes: 2 additions & 0 deletions deploy/nacos/nacos-quick-start.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,8 @@ spec:
value: "8848"
- name: PREFER_HOST_MODE
value: "hostname"
- name: SPRING_DATASOURCE_PLATFORM
value: "mysql"
- name: NACOS_SERVERS
value: "nacos-0.nacos-headless.default.svc.cluster.local:8848 nacos-1.nacos-headless.default.svc.cluster.local:8848 nacos-2.nacos-headless.default.svc.cluster.local:8848"
selector:
Expand Down

0 comments on commit e682001

Please sign in to comment.