Skip to content

Commit

Permalink
Add new environment
Browse files Browse the repository at this point in the history
  • Loading branch information
paderlol committed Jun 28, 2020
1 parent 2da3f6b commit f735969
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
3 changes: 2 additions & 1 deletion README-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,8 @@ for i in 0 1 2; do echo nacos-$i; kubectl exec nacos-$i curl GET "http://localho
| mysql.user | Y | 用户名 |
| mysql.password | Y | 密码 |
| NACOS_REPLICAS | N | 确定执行Nacos启动节点数量,如果不适用动态扩容插件,就必须配置这个属性,否则使用扩容插件后不会生效 |
| NACOS_SERVER_PORT | N | Nacos 端口 |
| NACOS_SERVER_PORT | N | Nacos 端口 为peer_finder插件提供端口 |
| NACOS_APPLICATION_PORT | N | Nacos 端口 |
| PREFER_HOST_MODE | Y | 启动Nacos集群按域名解析 |


Expand Down
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,8 @@ You can find that the new node has joined the cluster
| mysql.user | Y | database username |
| mysql.password | Y | database password |
| NACOS_REPLICAS | Y | The number of clusters must be consistent with the value of the replicas attribute |
| NACOS_SERVER_PORT | N | Nacos port,default:8848 |
| NACOS_SERVER_PORT | N | Nacos port,default:8848 for Peer-finder plugin |
| NACOS_APPLICATION_PORT | N | Nacos port, default:8848 |
| PREFER_HOST_MODE | Y | Enable Nacos cluster node domain name support |


Expand Down
2 changes: 2 additions & 0 deletions helm/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,8 @@ spec:
key: mysql.password
- name: NACOS_SERVER_PORT
value: {{ .Values.env.serverPort | quote }}
- name: NACOS_APPLICATION_PORT
value: {{ .Values.env.serverPort | quote }}
volumeMounts:
- name: plugindir
mountPath: /home/nacos/plugins/peer-finder
Expand Down

0 comments on commit f735969

Please sign in to comment.