You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/zh-cn/docs/tasks/configure-pod-container/static-pod.md
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -116,8 +116,9 @@ For example, this is how to start a simple web server as a static Pod:
116
116
```shell
117
117
ssh my-node1
118
118
```
119
+
119
120
<!--
120
-
2. Choose a directory, say `/etc/kubelet.d` and place a web server Pod definition there, e.g. `/etc/kubelet.d/static-web.yaml`:
121
+
2. Choose a directory, say `/etc/kubernetes/manifests` and place a web server Pod definition there, for example `/etc/kubernetes/manifests/static-web.yaml`:
121
122
122
123
```shell
123
124
# Run this command on the node where kubelet is running
@@ -271,7 +272,7 @@ already be running.
271
272
272
273
You can view running containers (including static Pods) by running (on the node):
273
274
```shell
274
-
# Run this command on the node where kubelet is running
275
+
# Run this command on the node where the kubelet is running
275
276
crictl ps
276
277
```
277
278
@@ -324,8 +325,7 @@ static-web 1/1 Running 0 2m
324
325
325
326
{{< note >}}
326
327
<!--
327
-
Make sure the kubelet has permission to create the mirror Pod in the API server. If not, the creation request is rejected by the API server. See
328
-
[Pod Security admission](/docs/concepts/security/pod-security-admission) and [PodSecurityPolicy](/docs/concepts/security/pod-security-policy/).
328
+
Make sure the kubelet has permission to create the mirror Pod in the API server. If not, the creation request is rejected by the API server. See [Pod Security admission](/docs/concepts/security/pod-security-admission) and [PodSecurityPolicy](/docs/concepts/security/pod-security-policy/).
329
329
-->
330
330
要确保 kubelet 在 API 服务上有创建镜像 Pod 的权限。如果没有,创建请求会被 API 服务拒绝。
0 commit comments