Fix incorrect YAML format in static-web.yaml example

pull/44172/head
Mengjiao Liu 2023-12-01 15:51:13 +08:00
parent 8498c51305
commit 6d0a60d121
1 changed files with 2 additions and 3 deletions

View File

@ -133,13 +133,12 @@ For example, this is how to start a simple web server as a static Pod:
<!--
1. Choose a directory, say `/etc/kubernetes/manifests` and place a web server
Pod definition there, for example `/etc/kubernetes/manifests/static-web.yaml`:
# Run this command on the node where kubelet is running
-->
2. 选择一个目录,比如在 `/etc/kubernetes/manifests` 目录来保存 Web 服务 Pod 的定义文件,例如
`/etc/kubernetes/manifests/static-web.yaml`
<!--
# Run this command on the node where kubelet is running
-->
```shell
# 在 kubelet 运行的节点上执行以下命令
mkdir -p /etc/kubernetes/manifests/