Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update doc that should support mysql.param #483

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions README-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ chmod +x quick-startup.sh

## 部署 NFS

* 创建角色
* 创建角色

```shell
kubectl create -f deploy/nfs/rbac.yaml
Expand Down Expand Up @@ -136,7 +136,7 @@ kubectl create -f deploy/mysql/mysql-nfs.yaml

```shell

kubectl get pod
kubectl get pod
NAME READY STATUS RESTARTS AGE
mysql-gf2vd 1/1 Running 0 111m

Expand All @@ -160,6 +160,7 @@ data:
mysql.port: "端口"
mysql.user: "用户名"
mysql.password: "密码"
mysql.param: "JDBC 连接参数"
```


Expand Down Expand Up @@ -282,6 +283,7 @@ for i in 0 1 2; do echo nacos-$i; kubectl exec nacos-$i curl GET "http://localho
| mysql.port | N | 端口 |
| mysql.user | Y | 用户名 |
| mysql.password | Y | 密码 |
| mysql.param | N | JDBC 连接参数 |
| SPRING_DATASOURCE_PLATFORM | Y | 数据库类型,默认embedded嵌入式数据库,参数只支持mysql或embedded |
| NACOS_REPLICAS | N | 确定执行Nacos启动节点数量,如果不适用动态扩容插件,就必须配置这个属性,否则使用扩容插件后不会生效 |
| NACOS_SERVER_PORT | N | Nacos 端口 为peer_finder插件提供端口 |
Expand All @@ -290,7 +292,7 @@ for i in 0 1 2; do echo nacos-$i; kubectl exec nacos-$i curl GET "http://localho



* **nfs** deployment.yaml
* **nfs** deployment.yaml

| 名称 | 必要 | 描述 |
| ---------- | -------- | ------------------------ |
Expand All @@ -301,7 +303,7 @@ for i in 0 1 2; do echo nacos-$i; kubectl exec nacos-$i curl GET "http://localho



* mysql
* mysql

| 名称 | 必要 | 描述 |
| -------------------------- | -------- | ----------------------------------------------------------- |
Expand Down
20 changes: 11 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ If you use a custom database, please initialize the database script yourself fir

## Deploy NFS

* Create Role
* Create Role

```shell
kubectl create -f deploy/nfs/rbac.yaml
Expand Down Expand Up @@ -147,15 +147,15 @@ kubectl create -f deploy/mysql/mysql-nfs.yaml

```shell

kubectl get pod
kubectl get pod
NAME READY STATUS RESTARTS AGE
mysql-gf2vd 1/1 Running 0 111m

```



## Deploy Nacos
## Deploy Nacos



Expand All @@ -170,6 +170,7 @@ data:
mysql.port: " db port"
mysql.user: " db username"
mysql.password: " db password"
mysql.param: " db param"
```


Expand Down Expand Up @@ -247,13 +248,13 @@ You can find that the new node has joined the cluster
- Kubernetes Node configuration(for reference only)

| Hostname | Configuration |
| ---------- | -------------------------------------------------------------------------------- |
| ---------- | -------------------------------------------------------------------------------- |
| k8s-master | CentOS Linux release 7.4.1708 (Core) Single-core processor Mem 4G Cloud disk 40G |
| node01 | CentOS Linux release 7.4.1708 (Core) Single-core processor Mem 4G Cloud disk 40G |
| node02 | CentOS Linux release 7.4.1708 (Core) Single-core processor Mem 4G Cloud disk 40G |

- Kubernetes version:**1.12.2+**
- NFS version:**4.1+**
- Kubernetes version:**1.12.2+**
- NFS version:**4.1+**



Expand All @@ -277,14 +278,15 @@ You can find that the new node has joined the cluster

# Configuration properties

* nacos-pvc-nfs.yaml or nacos-quick-start.yaml
* nacos-pvc-nfs.yaml or nacos-quick-start.yaml

| Name | Required | Description |
| --------------------- | -------- | --------------------------------------- |
| mysql.db.name | Y | database name |
| mysql.port | N | database port |
| mysql.user | Y | database username |
| mysql.password | Y | database password |
| mysql.param | N | database parameter |
| SPRING_DATASOURCE_PLATFORM | Y | Database type,The default is embedded database,parameters only support mysql or embedded |
| 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 for Peer-finder plugin |
Expand All @@ -293,7 +295,7 @@ You can find that the new node has joined the cluster



* **nfs** deployment.yaml
* **nfs** deployment.yaml

| Name | Required | Description |
| ---------- | -------- | ------------------------ |
Expand All @@ -304,7 +306,7 @@ You can find that the new node has joined the cluster



* mysql yaml
* mysql yaml

| Name | Required | Description |
| -------------------------- | -------- | ----------------------------------------------------------- |
Expand Down