[zh-cn]sync task files under configure-pod-container/
This commit is contained in:
parent
c97178cd16
commit
db902399b3
|
|
@ -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 事件;在容器被终结之前,
|
||||
|
|
|
|||
|
|
@ -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:
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
---
|
||||
title: 配置 Pod 以使用卷进行存储
|
||||
content_type: task
|
||||
weight: 50
|
||||
weight: 80
|
||||
---
|
||||
<!--
|
||||
title: Configure a Pod to Use a Volume for Storage
|
||||
|
|
|
|||
|
|
@ -2,6 +2,7 @@
|
|||
title: 从 PodSecurityPolicy 迁移到内置的 PodSecurity 准入控制器
|
||||
content_type: task
|
||||
min-kubernetes-server-version: v1.22
|
||||
weight: 260
|
||||
---
|
||||
|
||||
<!--
|
||||
|
|
|
|||
Loading…
Reference in New Issue