Skip to content

Commit b9300e4

Browse files
authored
Merge pull request #49660 from asa3311/sync-zh-167
[zh] sync service open-a-pr kubeadm-upgrade
2 parents ac658ee + 628c488 commit b9300e4

File tree

4 files changed

+34
-17
lines changed

4 files changed

+34
-17
lines changed

content/zh-cn/docs/concepts/services-networking/service.md

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -196,20 +196,7 @@ publish that TCP listener:
196196
例如,假定有一组 Pod,每个 Pod 都在侦听 TCP 端口 9376,并且它们还被打上
197197
`app.kubernetes.io/name=MyApp` 标签。你可以定义一个 Service 来发布该 TCP 侦听器。
198198

199-
```yaml
200-
apiVersion: v1
201-
kind: Service
202-
metadata:
203-
name: my-service
204-
spec:
205-
selector:
206-
app.kubernetes.io/name: MyApp
207-
ports:
208-
- name: http
209-
protocol: TCP
210-
port: 80
211-
targetPort: 9376
212-
```
199+
{{% code_sample file="service/simple-service.yaml" %}}
213200

214201
<!--
215202
Applying this manifest creates a new Service named "my-service" with the default

content/zh-cn/docs/contribute/new-content/open-a-pr.md

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -512,11 +512,24 @@ variable to override this behaviour.
512512
# 在终端窗口中执行(如果有需要)
513513
make container-image
514514
```
515+
516+
<!--
517+
1. Fetch submodule dependencies in your local repository:
518+
-->
519+
2. 在你的本地存储库中获取子模块依赖项:
520+
521+
<!--
522+
# Run this in a terminal
523+
-->
524+
```shell
525+
# 在终端窗口中执行
526+
make module-init
527+
```
515528

516529
<!--
517530
1. Start Hugo in a container:
518531
-->
519-
2. 在容器中启动 Hugo:
532+
3. 在容器中启动 Hugo:
520533

521534
```shell
522535
# 在终端窗口中执行
@@ -530,10 +543,10 @@ variable to override this behaviour.
530543
1. To stop the local Hugo instance, go back to the terminal and type `Ctrl+C`,
531544
or close the terminal window.
532545
-->
533-
3. 启动浏览器,浏览 `http://localhost:1313`
546+
4. 启动浏览器,浏览 `http://localhost:1313`
534547
Hugo 会监测文件的变更并根据需要重新构建网站。
535548

536-
4. 要停止本地 Hugo 实例,可返回到终端并输入 `Ctrl+C`,或者关闭终端窗口。
549+
5. 要停止本地 Hugo 实例,可返回到终端并输入 `Ctrl+C`,或者关闭终端窗口。
537550

538551
{{% /tab %}}
539552
{{% tab name="在命令行执行 Hugo" %}}

content/zh-cn/docs/tasks/administer-cluster/kubeadm/kubeadm-upgrade.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -217,6 +217,12 @@ sudo yum list --showduplicates kubeadm --disableexcludes=kubernetes
217217
{{% /tab %}}
218218
{{< /tabs >}}
219219

220+
<!--
221+
If you don't see the version you expect to upgrade to, [verify if the Kubernetes package repositories are used.](/docs/tasks/administer-cluster/kubeadm/change-package-repository/#verifying-if-the-kubernetes-package-repositories-are-used)
222+
-->
223+
如果你没有看到预期要升级到的版本,
224+
[验证是否使用了 Kubernetes 软件包仓库](/zh-cn/docs/tasks/administer-cluster/kubeadm/change-package-repository/#verifying-if-the-kubernetes-package-repositories-are-used)
225+
220226
<!--
221227
## Upgrading control plane nodes
222228
-->
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
apiVersion: v1
2+
kind: Service
3+
metadata:
4+
name: my-service
5+
spec:
6+
selector:
7+
app.kubernetes.io/name: MyApp
8+
ports:
9+
- protocol: TCP
10+
port: 80
11+
targetPort: 9376

0 commit comments

Comments
 (0)