Skip to content

Commit 1adaa8e

Browse files
committed
[zh-cn] sync stateful-application/basic-stateful-set.md
Signed-off-by: xin.li <[email protected]>
1 parent be43fc0 commit 1adaa8e

File tree

1 file changed

+27
-7
lines changed

1 file changed

+27
-7
lines changed

content/zh-cn/docs/tutorials/stateful-application/basic-stateful-set.md

Lines changed: 27 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -42,26 +42,46 @@ following Kubernetes concepts:
4242
* [Headless Services](/docs/concepts/services-networking/service/#headless-services)
4343
* [PersistentVolumes](/docs/concepts/storage/persistent-volumes/)
4444
* [PersistentVolume Provisioning](https://github.com/kubernetes/examples/tree/master/staging/persistent-volume-provisioning/)
45-
* [StatefulSets](/docs/concepts/workloads/controllers/statefulset/)
4645
* The [kubectl](/docs/reference/kubectl/kubectl/) command line tool
4746
-->
4847
* [Pod](/zh-cn/docs/concepts/workloads/pods/)
4948
* [Cluster DNS](/zh-cn/docs/concepts/services-networking/dns-pod-service/)
5049
* [Headless Service](/zh-cn/docs/concepts/services-networking/service/#headless-services)
5150
* [PersistentVolumes](/zh-cn/docs/concepts/storage/persistent-volumes/)
5251
* [PersistentVolume Provisioning](https://github.com/kubernetes/examples/tree/master/staging/persistent-volume-provisioning/)
53-
* [StatefulSet](/zh-cn/docs/concepts/workloads/controllers/statefulset/)
5452
* [kubectl](/zh-cn/docs/reference/kubectl/kubectl/) 命令行工具
5553

54+
{{% include "task-tutorial-prereqs.md" %}}
55+
<!--
56+
You should configure `kubectl` to use a context that uses the `default`
57+
namespace.
58+
If you are using an existing cluster, make sure that it's OK to use that
59+
cluster's default namespace to practice. Ideally, practice in a cluster
60+
that doesn't run any real workloads.
61+
62+
It's also useful to read the concept page about [StatefulSets](/docs/concepts/workloads/controllers/statefulset/).
63+
-->
64+
你应该配置 `kubectl` 的上下文使用 `default` 命名空间。
65+
如果你使用的是现有集群,请确保可以使用该集群的 `default` 命名空间进行练习。
66+
理想情况下,在没有运行任何实际工作负载的集群中进行练习。
67+
68+
阅读有关 [StatefulSet](/zh-cn/docs/concepts/workloads/controllers/statefulset/)
69+
的概念页面也很有用。
70+
5671
{{< note >}}
5772
<!--
5873
This tutorial assumes that your cluster is configured to dynamically provision
59-
PersistentVolumes. If your cluster is not configured to do so, you
74+
PersistentVolumes. You'll also need to have a [default StorageClass](/docs/concepts/storage/storage-classes/#default-storageclass).
75+
If your cluster is not configured to provision storage dynamically, you
6076
will have to manually provision two 1 GiB volumes prior to starting this
61-
tutorial.
62-
-->
63-
本教程假设你的集群被配置为动态制备 PersistentVolume 卷。
64-
如果没有这样配置,在开始本教程之前,你需要手动准备 2 个 1 GiB 的存储卷。
77+
tutorial and
78+
set up your cluster so that those PersistentVolumes map to the
79+
PersistentVolumeClaim templates that the StatefulSet defines.
80+
-->
81+
本教程假设你的集群被配置为动态制备 PersistentVolume 卷,
82+
且有一个[默认 StorageClass](/zh-cn/docs/concepts/storage/storage-classes/#default-storageclass)
83+
如果没有这样配置,在开始本教程之前,你需要手动准备 2 个 1 GiB 的存储卷,
84+
以便这些 PersistentVolume 可以映射到 StatefulSet 定义的 PersistentVolumeClaim 模板。
6585
{{< /note >}}
6686

6787
## {{% heading "objectives" %}}

0 commit comments

Comments
 (0)