@@ -42,26 +42,46 @@ following Kubernetes concepts:
42
42
* [Headless Services](/docs/concepts/services-networking/service/#headless-services)
43
43
* [PersistentVolumes](/docs/concepts/storage/persistent-volumes/)
44
44
* [PersistentVolume Provisioning](https://github.com/kubernetes/examples/tree/master/staging/persistent-volume-provisioning/)
45
- * [StatefulSets](/docs/concepts/workloads/controllers/statefulset/)
46
45
* The [kubectl](/docs/reference/kubectl/kubectl/) command line tool
47
46
-->
48
47
* [ Pod] ( /zh-cn/docs/concepts/workloads/pods/ )
49
48
* [ Cluster DNS] ( /zh-cn/docs/concepts/services-networking/dns-pod-service/ )
50
49
* [ Headless Service] ( /zh-cn/docs/concepts/services-networking/service/#headless-services )
51
50
* [ PersistentVolumes] ( /zh-cn/docs/concepts/storage/persistent-volumes/ )
52
51
* [ PersistentVolume Provisioning] ( https://github.com/kubernetes/examples/tree/master/staging/persistent-volume-provisioning/ )
53
- * [ StatefulSet] ( /zh-cn/docs/concepts/workloads/controllers/statefulset/ )
54
52
* [ kubectl] ( /zh-cn/docs/reference/kubectl/kubectl/ ) 命令行工具
55
53
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
+
56
71
{{< note >}}
57
72
<!--
58
73
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
60
76
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 模板。
65
85
{{< /note >}}
66
86
67
87
## {{% heading "objectives" %}}
0 commit comments