Skip to content

Commit 9060b04

Browse files
authored
Merge pull request #40009 from howieyuen/configure-pod-container-4
[zh-cn]sync task files under configure-pod-container/
2 parents ef7c857 + db90239 commit 9060b04

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

content/zh-cn/docs/tasks/configure-pod-container/attach-handler-lifecycle-event.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
---
22
title: 为容器的生命周期事件设置处理函数
33
content_type: task
4-
weight: 140
4+
weight: 180
55
---
66
<!--
77
title: Attach Handlers to Container Lifecycle Events
88
content_type: task
9-
weight: 140
9+
weight: 180
1010
-->
1111

1212
<!-- overview -->
@@ -15,7 +15,7 @@ weight: 140
1515
This page shows how to attach handlers to Container lifecycle events. Kubernetes supports
1616
the postStart and preStop events. Kubernetes sends the postStart event immediately
1717
after a Container is started, and it sends the preStop event immediately before the
18-
Container is terminated.A Container may specify one handler per event.
18+
Container is terminated. A Container may specify one handler per event.
1919
-->
2020
这个页面将演示如何为容器的生命周期事件挂接处理函数。Kubernetes 支持 postStart 和 preStop 事件。
2121
当一个容器启动后,Kubernetes 将立即发送 postStart 事件;在容器被终结之前,

content/zh-cn/docs/tasks/configure-pod-container/configure-persistent-volume-storage.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -419,8 +419,8 @@ You can now close the shell to your Node.
419419
<!--
420420
You can perform 2 volume mounts on your nginx container:
421421
422-
`/usr/share/nginx/html` for the static website
423-
`/etc/nginx/nginx.conf` for the default config
422+
- `/usr/share/nginx/html` for the static website
423+
- `/etc/nginx/nginx.conf` for the default config
424424
-->
425425
你可以在 nginx 容器上执行两个卷挂载:
426426

@@ -452,7 +452,6 @@ GID 不匹配或缺失将会导致无权访问错误。
452452
```yaml
453453
apiVersion: v1
454454
kind: PersistentVolume
455-
apiVersion: v1
456455
metadata:
457456
name: pv1
458457
annotations:

content/zh-cn/docs/tasks/configure-pod-container/configure-volume-storage.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: 配置 Pod 以使用卷进行存储
33
content_type: task
4-
weight: 50
4+
weight: 80
55
---
66
<!--
77
title: Configure a Pod to Use a Volume for Storage

content/zh-cn/docs/tasks/configure-pod-container/migrate-from-psp.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
title: 从 PodSecurityPolicy 迁移到内置的 PodSecurity 准入控制器
33
content_type: task
44
min-kubernetes-server-version: v1.22
5+
weight: 260
56
---
67

78
<!--

0 commit comments

Comments
 (0)