Skip to content

Commit 1a88b33

Browse files
authored
Merge pull request #856 from chris-sun-star/2.3.3-doc
2.3.3 doc
2 parents 1c36aea + c8741ca commit 1a88b33

4 files changed

Lines changed: 36 additions & 6 deletions

File tree

docsite/docs/manual/500.ob-operator-user-guide/200.tenant-management-of-ob-operator/100.create-tenant.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,9 @@ spec:
4646
credentials: # optional
4747
root: t1-ro # optional, empty root password if not given
4848
standbyRo: t1-ro # optional, generate automatically if not given
49+
variables:
50+
- name: "lower_case_table_names"
51+
value: "1"
4952
pools:
5053
- zone: zone1
5154
type:
@@ -103,6 +106,7 @@ The following table describes the parameters.
103106
| connectWhiteList | Optional. The IP addresses of the clients that are allowed to connect to the tenant. `%` indicates that all client IP addresses are allowed to connect to the tenant. The default value is `%`. When you modify this parameter, the value must include the CIDR block of ob-operator; otherwise, ob-operator cannot connect to the tenant. |
104107
| forceDelete | Optional. Specifies whether to forcibly delete the tenant. The default value is `false`. |
105108
| credentials | Optional. The secret resources referenced for creating the user and changing the password when you create the tenant. You can specify the passwords of the root account and the standbyro account. If you do not specify this parameter, the password is not changed. |
109+
| variables | Optional. A list of tenant-level variables to set. Each item in the list should have a `name` and a `value`. (supported from version 2.3.3) |
106110
| pools | The topology of the tenant, which defines the replica and resource distribution of the tenant in each zone. |
107111
| type.name | Required. The type of replicas in the zone. The valid values are `full` and `readonly`. This parameter is case insensitive. |
108112
| type.replica | Optional. The number of replicas in the zone. This parameter is set to `1` by default. |
@@ -147,6 +151,9 @@ Spec:
147151
Credentials:
148152
Root: t1-ro
149153
Standby Ro: t1-ro
154+
variables:
155+
- name: "lower_case_table_names"
156+
value: "1"
150157
Force Delete: true
151158
Obcluster: obcluster
152159
Pools:

docsite/docs/manual/500.ob-operator-user-guide/300.high-availability/400.tenant-backup-of-ob-operator.md

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,9 +78,14 @@ The parameters are described as follows:
7878

7979
destination:
8080

81-
* type: the type of the destination. Valid values are `NFS` and `OSS`.
82-
* path: the path of the backup destination. If you use an OSS backup destination, the path must start with `oss://`. If you use an NFS backup destination, you must specify a relative path, which must not start with `/`.
83-
* ossAccessSecret: the name of the secret resource that stores the OSS access credential. If you use an OSS backup destination, you must specify this parameter.
81+
* type: The type of the destination. Valid values are `NFS`, `OSS`, `S3`, `COS`, and `S3_COMPATIBLE`. │
82+
* path: The path of the backup destination. │
83+
* For `NFS`, you must specify a relative path, which must not start with `/`. │
84+
* For `OSS`, the path must start with `oss://` and include the `host` parameter. Example: `oss://bucket/backup?host=oss-cn-hangzhou.aliyuncs.com` │
85+
* For `S3`, the path must start with `s3://` and include the `host` parameter. Example: `s3://bucket/backup?host=s3.us-west-1.amazonaws.com` │
86+
* For `COS`, the path must start with `cos://` and include the `host` parameter. Example: `cos://bucket/backup?host=cos.ap-nanjing.myqcloud.com` │
87+
* For `S3_COMPATIBLE`, the path must start with `s3://` and include the `host` parameter for the S3-compatible endpoint. Example: `s3://bucket/backup?host=minio.example.com` │
88+
* ossAccessSecret: The name of the secret resource that stores the access credential. This is required for `OSS`, `S3`, `COS`, and `S3_COMPATIBLE`.
8489

8590
Here is the configuration of a sample tenantSecret resource:
8691

@@ -120,6 +125,9 @@ data:
120125
# base64 encoded
121126
accessId: ******
122127
accessKey: ******
128+
appId: ****** # this config is for COS
129+
s3Region: ****** # this config is for S3
130+
addressingModel: ****** # this config is for S3_COMPATIBLE, (supported from version 2.3.3)
123131
```
124132

125133
## Common operations

docsite/i18n/zh-Hans/docusaurus-plugin-content-docs/current/manual/500.ob-operator-user-guide/200.tenant-management-of-ob-operator/100.create-tenant.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,9 @@ spec:
4646
credentials: # 可选
4747
root: t1-ro # 可选,如不传则 root 用户密码为空
4848
standbyRo: t1-ro # 可选,如不传则自动创建
49+
variables:
50+
- name: "lower_case_table_names"
51+
value: "1"
4952
pools:
5053
- zone: zone1
5154
type:
@@ -103,6 +106,7 @@ spec:
103106
| connectWhiteList | 指定允许连接该租户的客户端 IP,`%` 表示任何客户端 IP 都可以连接该租户;非必填,默认设置为 `%`。如果用户需要修改改配置,则需要将 ob-operator 所处的网段包含在配置内,否则 ob-operator 会连接不上该租户。 |
104107
| forceDelete | 删除时是否强制删除,非必填,默认为 false。 |
105108
| credentials | 创建租户时创建用户和修改密码的 Secret 资源引用。目前支持配置 root 账号和 standbyRo 两个用户的密码,非必填,不填则不修改密码。 |
109+
| variables | 可选。要设置的租户级变量列表。列表中的每个项目都应包含 `name` 和 `value`。 (从 2.3.3 版本开始支持) |
106110
| pools | 租户的拓扑结构,用于定义租户在每个 zone 上的副本、资源分布等情况。 |
107111
| type.name | 指定租户在该 zone 的副本类型,支持 full 和 readonly, 需要写出完整类型, 大小写不敏感;必填。|
108112
| type.replica | 指定租户在该 zone 的副本数;非必填,默认为 1。 |
@@ -144,6 +148,9 @@ Metadata:
144148
Spec:
145149
Charset: utf8mb4
146150
Connect White List: %
151+
variables:
152+
- name: "lower_case_table_names"
153+
value: "1"
147154
Credentials:
148155
Root: t1-ro
149156
Standby Ro: t1-ro

docsite/i18n/zh-Hans/docusaurus-plugin-content-docs/current/manual/500.ob-operator-user-guide/300.high-availability/400.tenant-backup-of-ob-operator.md

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,9 +78,14 @@ spec:
7878

7979
destination:
8080

81-
* type:目的地类型,支持 NFS 和 OSS 两种。
82-
* path:目的地的备份路径,如果是 OSS 类型,则需要以 `oss://` 开头;如果是 NFS 类型,则是非 `/` 开头的相对路径。
83-
* ossAccessSecret: 存放访问 OSS 凭证的 Secret 资源名,如果备份目的地类型为 OSS,该字段必须提供。
81+
* type:目的地类型,支持 `NFS`、`OSS`、`S3`、`COS` 和 `S3_COMPATIBLE`。 │
82+
* path:目的地的备份路径。 │
83+
* `NFS` 类型:非 `/` 开头的相对路径。 │
84+
* `OSS` 类型:以 `oss://` 开头,并包含 `host` 参数。示例:`oss://bucket/backup?host=oss-cn-hangzhou.aliyuncs.com` │
85+
* `S3` 类型:以 `s3://` 开头,并包含 `host` 参数。示例:`s3://bucket/backup?host=s3.us-west-1.amazonaws.com` │
86+
* `COS` 类型:以 `cos://` 开头,并包含 `host` 参数。示例:`cos://bucket/backup?host=cos.ap-nanjing.myqcloud.com` │
87+
* `S3_COMPATIBLE` 类型:以 `s3://` 开头,并包含 S3 兼容存储的 `host` 参数。示例:`s3://bucket/backup?host=minio.example.com` │
88+
* ossAccessSecret:存放访问凭证的 Secret 资源名。如果备份目的地类型为 `OSS`、`S3`、`COS` 或 `S3_COMPATIBLE`,该字段必须提供。
8489

8590
tenantSecret 示例:
8691

@@ -120,6 +125,9 @@ data:
120125
# base64 encoded
121126
accessId: ******
122127
accessKey: ******
128+
appId: ****** # this config is for COS
129+
s3Region: ****** # this config is for S3
130+
addressingModel: ****** # this config is for S3_COMPATIBLE, (supported from version 2.3.3)
123131
```
124132

125133
## 常用操作

0 commit comments

Comments
 (0)