Skip to content

Commit 1d90aff

Browse files
committed
[zh-cn] sync mysql-statefulset kubeadm-join kubernetes-api
Signed-off-by: xin.li <[email protected]>
1 parent ee1b7ef commit 1d90aff

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

content/zh-cn/docs/concepts/overview/kubernetes-api.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ are provided in the following format:
194194
}
195195
}
196196
```
197-
<!-- for editors: intionally use yaml instead of json here, to prevent syntax highlight error. -->
197+
<!-- for editors: intentionally use yaml instead of json here, to prevent syntax highlight error. -->
198198

199199
<!--
200200
The relative URLs are pointing to immutable OpenAPI descriptions, in

content/zh-cn/docs/reference/setup-tools/kubeadm/kubeadm-join.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -409,7 +409,8 @@ After that, `kubeadm join` will block until the admin has manually approved the
409409
```
410410

411411
<!--
412-
2. `kubectl certificate approve` allows the admin to approve CSR. This action tells a certificate signing controller to issue a certificate to the requestor with the attributes requested in the CSR.
412+
2. `kubectl certificate approve` allows the admin to approve CSR. This action tells a certificate signing
413+
controller to issue a certificate to the requestor with the attributes requested in the CSR.
413414
-->
414415
2. `kubectl certificate approve` 允许管理员批准 CSR。
415416
此操作告知证书签名控制器向请求者颁发一个证书,该证书具有 CSR 中所请求的那些属性。
@@ -540,10 +541,10 @@ allowed in some cases.
540541

541542
<!--
542543
The default configuration can be printed out using the
543-
[kubeadm config print](/docs/reference/setup-tools/kubeadm/kubeadm-config/) command.
544+
[kubeadm config print](/docs/reference/setup-tools/kubeadm/kubeadm-config/#cmd-config-print) command.
544545

545546
If your configuration is not using the latest version it is **recommended** that you migrate using
546-
the [kubeadm config migrate](/docs/reference/setup-tools/kubeadm/kubeadm-config/) command.
547+
the [kubeadm config migrate](/docs/reference/setup-tools/kubeadm/kubeadm-config/#cmd-config-migrate) command.
547548
-->
548549
使用 [kubeadm config print](/zh-cn/docs/reference/setup-tools/kubeadm/kubeadm-config/#cmd-config-print)
549550
命令可以打印默认配置。

content/zh-cn/examples/application/mysql/mysql-statefulset.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ spec:
2424
- |
2525
set -ex
2626
# 基于 Pod 序号生成 MySQL 服务器的 ID。
27-
[[ `hostname` =~ -([0-9]+)$ ]] || exit 1
27+
[[ $HOSTNAME =~ -([0-9]+)$ ]] || exit 1
2828
ordinal=${BASH_REMATCH[1]}
2929
echo [mysqld] > /mnt/conf.d/server-id.cnf
3030
# 添加偏移量以避免使用 server-id=0 这一保留值。

0 commit comments

Comments
 (0)