Skip to content

Commit

Permalink
Update mountOptions to separate options
Browse files Browse the repository at this point in the history
  • Loading branch information
hongshaoyang committed Nov 8, 2023
1 parent 4884bb9 commit 2d73650
Show file tree
Hide file tree
Showing 6 changed files with 24 additions and 12 deletions.
9 changes: 6 additions & 3 deletions en/deploy-on-aws-eks.md
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,8 @@ kind: StorageClass
apiVersion: storage.k8s.io/v1
# ...
mountOptions:
- nodelalloc,noatime
- nodelalloc
- noatime
```

For more information on the mount options, see [TiDB Environment and System Configuration Check](https://docs.pingcap.com/tidb/stable/check-before-deployment#mount-the-data-disk-ext4-filesystem-with-options-on-the-target-machines-that-deploy-tikv).
Expand Down Expand Up @@ -230,7 +231,8 @@ The following example shows how to create and configure a StorageClass for the `
iops: "4000"
throughput: "400"
mountOptions:
- nodelalloc,noatime
- nodelalloc
- noatime
```

4. In the TidbCluster YAML file, configure `gp3` in the `storageClassName` field. For example:
Expand All @@ -249,7 +251,8 @@ The following example shows how to create and configure a StorageClass for the `
apiVersion: storage.k8s.io/v1
# ...
mountOptions:
- nodelalloc,noatime
- nodelalloc
- noatime
```

For more information on the mount options, see [TiDB Environment and System Configuration Check](https://docs.pingcap.com/tidb/stable/check-before-deployment#mount-the-data-disk-ext4-filesystem-with-options-on-the-target-machines-that-deploy-tikv).
Expand Down
6 changes: 4 additions & 2 deletions en/deploy-on-azure-aks.md
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,8 @@ kind: StorageClass
apiVersion: storage.k8s.io/v1
# ...
mountOptions:
- nodelalloc,noatime
- nodelalloc
- noatime
```

## Deploy TiDB Operator
Expand Down Expand Up @@ -547,7 +548,8 @@ Azure disks support multiple volume types. Among them, `UltraSSD` delivers low l
allowVolumeExpansion: true
volumeBindingMode: WaitForFirstConsumer
mountOptions:
- nodelalloc,noatime
- nodelalloc
- noatime
```
You can add more [Driver Parameters](https://github.com/kubernetes-sigs/azuredisk-csi-driver/blob/master/docs/driver-parameters.md) as required.
Expand Down
3 changes: 2 additions & 1 deletion en/deploy-on-gcp-gke.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,8 @@ allowVolumeExpansion: true
parameters:
type: pd-ssd
mountOptions:
- nodelalloc,noatime
- nodelalloc
- noatime
```

> **Note:**
Expand Down
9 changes: 6 additions & 3 deletions zh/deploy-on-aws-eks.md
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,8 @@ kind: StorageClass
apiVersion: storage.k8s.io/v1
# ...
mountOptions:
- nodelalloc,noatime
- nodelalloc
- noatime
```

### gp3 存储类型(推荐)或其他 EBS 存储类型
Expand Down Expand Up @@ -225,7 +226,8 @@ mountOptions:
iops: "4000"
throughput: "400"
mountOptions:
- nodelalloc,noatime
- nodelalloc
- noatime
```

4. 在 TidbCluster 的 YAML 文件中,通过 `storageClassName` 字段指定 gp3 存储类来申请 `gp3` 类型的 EBS 存储。可以参考以下 TiKV 配置示例:
Expand All @@ -244,7 +246,8 @@ mountOptions:
apiVersion: storage.k8s.io/v1
# ...
mountOptions:
- nodelalloc,noatime
- nodelalloc
- noatime
```

如果想了解更多 EBS 存储类型选择和配置信息,请查看 [AWS 官方文档](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-volume-types.html) 和 [Storage Class 官方文档](https://kubernetes.io/docs/concepts/storage/storage-classes/)。
Expand Down
6 changes: 4 additions & 2 deletions zh/deploy-on-azure-aks.md
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,8 @@ kind: StorageClass
apiVersion: storage.k8s.io/v1
# ...
mountOptions:
- nodelalloc,noatime
- nodelalloc
- noatime
```

## 部署 TiDB Operator
Expand Down Expand Up @@ -535,7 +536,8 @@ Azure Disk 支持多种磁盘类型。若需要低延迟、高吞吐,可以选
allowVolumeExpansion: true
volumeBindingMode: WaitForFirstConsumer
mountOptions:
- nodelalloc,noatime
- nodelalloc
- noatime
```

你可以根据实际需要额外配置[驱动参数](https://github.com/kubernetes-sigs/azuredisk-csi-driver/blob/master/docs/driver-parameters.md)。
Expand Down
3 changes: 2 additions & 1 deletion zh/deploy-on-gcp-gke.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,8 @@ allowVolumeExpansion: true
parameters:
type: pd-ssd
mountOptions:
- nodelalloc,noatime
- nodelalloc
- noatime
```

> **注意:**
Expand Down

0 comments on commit 2d73650

Please sign in to comment.