[zh-cn]sync task files under configure-pod-container/

This commit is contained in:
howieyuen 2023-03-15 11:14:45 +08:00
parent c97178cd16
commit db902399b3
4 changed files with 7 additions and 7 deletions

View File

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

View File

@ -419,8 +419,8 @@ You can now close the shell to your Node.
<!--
You can perform 2 volume mounts on your nginx container:
`/usr/share/nginx/html` for the static website
`/etc/nginx/nginx.conf` for the default config
- `/usr/share/nginx/html` for the static website
- `/etc/nginx/nginx.conf` for the default config
-->
你可以在 nginx 容器上执行两个卷挂载:
@ -452,7 +452,6 @@ GID 不匹配或缺失将会导致无权访问错误。
```yaml
apiVersion: v1
kind: PersistentVolume
apiVersion: v1
metadata:
name: pv1
annotations:

View File

@ -1,7 +1,7 @@
---
title: 配置 Pod 以使用卷进行存储
content_type: task
weight: 50
weight: 80
---
<!--
title: Configure a Pod to Use a Volume for Storage

View File

@ -2,6 +2,7 @@
title: 从 PodSecurityPolicy 迁移到内置的 PodSecurity 准入控制器
content_type: task
min-kubernetes-server-version: v1.22
weight: 260
---
<!--