fix Typo "##" -> "## " (#12011)
* fix Typo "##" -> "## " fix Typo "##" -> "## " * update basic-stateful-set.md
This commit is contained in:
committed by
Kubernetes Prow Robot
parent
8511590979
commit
a1bfbe8b21
@@ -46,7 +46,7 @@ StatefulSets 旨在与有状态的应用及分布式系统一起使用。然而
|
||||
|
||||
{{% capture lessoncontent %}}
|
||||
|
||||
##创建 StatefulSet
|
||||
## 创建 StatefulSet
|
||||
|
||||
|
||||
作为开始,使用如下示例创建一个 StatefulSet。它和 [StatefulSets](/docs/concepts/abstractions/controllers/statefulsets/) 概念中的示例相似。它创建了一个 [Headless Service](/docs/user-guide/services/#headless-services) `nginx` 用来发布StatefulSet `web` 中的 Pod 的 IP 地址。
|
||||
@@ -448,9 +448,10 @@ kubectl delete pod web-0
|
||||
pod "web-0" deleted
|
||||
```
|
||||
|
||||
<--
|
||||
<!--
|
||||
Watch the `web-0` Pod, and wait for it to transition to Running and Ready.
|
||||
-->
|
||||
|
||||
观察 `web-0` Pod, 等待它变成 Running 和 Ready。
|
||||
|
||||
```shell
|
||||
@@ -477,10 +478,15 @@ web-1 k8s.gcr.io/nginx-slim:0.8
|
||||
web-2 k8s.gcr.io/nginx-slim:0.8
|
||||
```
|
||||
|
||||
<!--
|
||||
`web-0` has had its image updated, but `web-0` and `web-1` still have the original
|
||||
image. Complete the update by deleting the remaining Pods.
|
||||
-->
|
||||
|
||||
```shell
|
||||
`web-0` 已经更新了它的容器镜像,但 `web-0` 和 `web-1` 仍然是原始版本的镜像。通过删除剩余的 Pod 来完成更新。
|
||||
|
||||
|
||||
```shell
|
||||
kubectl delete pod web-1 web-2
|
||||
pod "web-1" deleted
|
||||
pod "web-2" deleted
|
||||
@@ -489,7 +495,7 @@ pod "web-2" deleted
|
||||
|
||||
观察 StatefulSet 的 Pod,等待它们全部变成 Running 和 Ready。
|
||||
|
||||
```
|
||||
```shell
|
||||
kubectl get pods -w -l app=nginx
|
||||
NAME READY STATUS RESTARTS AGE
|
||||
web-0 1/1 Running 0 8m
|
||||
|
||||
Reference in New Issue
Block a user