Translate docs/tasks/configure-pod-container/attach-handler-lifecycle-event in Chinese (#14605)

* Add zh/docs/tasks/configure-pod-container/attach-handler-lifecycle-event.md
Add zh/examples/pods/lifecycle-events.yaml

Translate zh/includes/task-tutorial-prereqs.md to chinese

* Apply suggestions from code review

Thanks for tengqm's review

Co-Authored-By: Qiming <tengqim@cn.ibm.com>

* Apply suggestions from code review

Thanks for tengqm's help again

Co-Authored-By: Qiming <tengqim@cn.ibm.com>

* Modify the order of text in markdown format

* Unified translation into 处理函数
This commit is contained in:
Jinhua Tan
2019-06-06 13:28:10 +08:00
committed by Kubernetes Prow Robot
parent 2e73fb64ee
commit ba2dc02c77
3 changed files with 195 additions and 0 deletions
@@ -0,0 +1,16 @@
apiVersion: v1
kind: Pod
metadata:
name: lifecycle-demo
spec:
containers:
- name: lifecycle-demo-container
image: nginx
lifecycle:
postStart:
exec:
command: ["/bin/sh", "-c", "echo Hello from the postStart handler > /usr/share/message"]
preStop:
exec:
command: ["/bin/sh","-c","nginx -s quit; while killall -0 nginx; do sleep 1; done"]