Skip to content

Commit 94134a3

Browse files
committed
fix: cn transalte bug
1 parent 89d0147 commit 94134a3

File tree

2 files changed

+37
-42
lines changed

2 files changed

+37
-42
lines changed

docs/en/guides/10-deploy/01-deploy/02-production/02-deploying-databend-on-kubernetes.md

Lines changed: 37 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -75,56 +75,54 @@ import TabItem from '@theme/TabItem';
7575
<Tabs>
7676
<TabItem value="aws" label="EKS(AWS)">
7777

78-
[Amazon Elastic Block Store (EBS) CSI driver](https://github.com/kubernetes-sigs/aws-ebs-csi-driver/blob/master/docs/install.md) is recommended.
79-
And remember to set the annotation for default class when adding storage classes, for example:
80-
81-
```yaml
82-
storageClasses:
83-
- name: gp3
84-
annotations:
85-
storageclass.kubernetes.io/is-default-class: "true"
86-
allowVolumeExpansion: true
87-
volumeBindingMode: WaitForFirstConsumer
88-
reclaimPolicy: Delete
89-
parameters:
90-
type: gp3
91-
```
92-
93-
```shell
94-
❯ kubectl get sc
95-
NAME PROVISIONER RECLAIMPOLICY VOLUMEBINDINGMODE ALLOWVOLUMEEXPANSION AGE
96-
gp2 kubernetes.io/aws-ebs Delete WaitForFirstConsumer true 16d
97-
gp3 (default) ebs.csi.aws.com Delete WaitForFirstConsumer true 15d
98-
```
78+
[Amazon Elastic Block Store (EBS) CSI driver](https://github.com/kubernetes-sigs/aws-ebs-csi-driver/blob/master/docs/install.md) is recommended.
79+
And remember to set the annotation for default class when adding storage classes, for example:
80+
81+
```yaml
82+
storageClasses:
83+
- name: gp3
84+
annotations:
85+
storageclass.kubernetes.io/is-default-class: "true"
86+
allowVolumeExpansion: true
87+
volumeBindingMode: WaitForFirstConsumer
88+
reclaimPolicy: Delete
89+
parameters:
90+
type: gp3
91+
```
92+
93+
```shell
94+
❯ kubectl get sc
95+
NAME PROVISIONER RECLAIMPOLICY VOLUMEBINDINGMODE ALLOWVOLUMEEXPANSION AGE
96+
gp2 kubernetes.io/aws-ebs Delete WaitForFirstConsumer true 16d
97+
gp3 (default) ebs.csi.aws.com Delete WaitForFirstConsumer true 15d
98+
```
9999

100100
</TabItem>
101101

102102
<TabItem value="aliyun" label="ACK(Alibaba Cloud)">
103103

104-
Ensure component `csi-provisioner` is installed, and then set the default storage class:
105-
106-
```shell
107-
❯ kubectl get sc
108-
NAME PROVISIONER RECLAIMPOLICY VOLUMEBINDINGMODE ALLOWVOLUMEEXPANSION AGE
109-
alicloud-disk-available diskplugin.csi.alibabacloud.com Delete Immediate true 66m
110-
alicloud-disk-efficiency diskplugin.csi.alibabacloud.com Delete Immediate true 66m
111-
alicloud-disk-essd diskplugin.csi.alibabacloud.com Delete Immediate true 66m
112-
alicloud-disk-ssd diskplugin.csi.alibabacloud.com Delete Immediate true 66m
113-
alicloud-disk-topology diskplugin.csi.alibabacloud.com Delete WaitForFirstConsumer true 66m
114-
alicloud-disk-topology-alltype diskplugin.csi.alibabacloud.com Delete WaitForFirstConsumer true 66m
115-
# select the wanted storage class as default,for example: alicloud-disk-topology-alltype
116-
// highlight-next-line
117-
❯ kubectl annotate sc alicloud-disk-topology-alltype storageclass.kubernetes.io/is-default-class=true --overwrite
118-
```
104+
Ensure component `csi-provisioner` is installed, and then set the default storage class:
105+
106+
```shell
107+
❯ kubectl get sc
108+
NAME PROVISIONER RECLAIMPOLICY VOLUMEBINDINGMODE ALLOWVOLUMEEXPANSION AGE
109+
alicloud-disk-available diskplugin.csi.alibabacloud.com Delete Immediate true 66m
110+
alicloud-disk-efficiency diskplugin.csi.alibabacloud.com Delete Immediate true 66m
111+
alicloud-disk-essd diskplugin.csi.alibabacloud.com Delete Immediate true 66m
112+
alicloud-disk-ssd diskplugin.csi.alibabacloud.com Delete Immediate true 66m
113+
alicloud-disk-topology diskplugin.csi.alibabacloud.com Delete WaitForFirstConsumer true 66m
114+
alicloud-disk-topology-alltype diskplugin.csi.alibabacloud.com Delete WaitForFirstConsumer true 66m
115+
# select the wanted storage class as default,for example: alicloud-disk-topology-alltype
116+
// highlight-next-line
117+
❯ kubectl annotate sc alicloud-disk-topology-alltype storageclass.kubernetes.io/is-default-class=true --overwrite
118+
```
119119

120120
</TabItem>
121121

122122
</Tabs>
123123

124124
:::
125125

126-
127-
128126
- **Recommended** Ensure Prometheus Operator running in Kubernetes cluster, if you want to monitor the status for Databend Meta and Databend Query.
129127

130128
:::tip Steps for a simple Kube Prometheus Stack
@@ -301,7 +299,7 @@ For different cloud providers:
301299

302300
</TabItem>
303301

304-
<TabItem value="aliyun" label="Alibaba Cloud">
302+
<TabItem value="aliyun" label="Alibaba Cloud ">
305303

306304
```yaml
307305
service:

generate-language-block.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@ async function processFiles(language, action) {
1111
for (const file of filesToProcess) {
1212
const filePath = path.resolve(file);
1313
if (fs.existsSync(filePath)) {
14-
console.log(`Processing file: ${filePath}`);
15-
1614
let fileContent = await fs.readFile(filePath, "utf-8");
1715

1816
if (language === "en") {
@@ -51,7 +49,6 @@ async function processFiles(language, action) {
5149

5250
// Write back to the file
5351
await fs.writeFile(filePath, fileContent, "utf-8");
54-
console.log(`File updated: ${filePath}`);
5552
} else {
5653
console.log(`File not found: ${filePath}`);
5754
}

0 commit comments

Comments
 (0)