Add Container lifecycle hooks to glossary (#10984)

* Add Container lifecycle hooks to glossary

* Add container definition tooltip

* Fixes after review
pull/11005/head
Pierre-Yves Aillet 2018-11-14 23:28:39 +01:00 committed by k8s-ci-robot
parent cb11cce55c
commit 8879db8080
1 changed files with 18 additions and 0 deletions

View File

@ -0,0 +1,18 @@
---
title: Container Lifecycle Hooks
id: container-lifecycle-hooks
date: 2018-10-08
full_link: /docs/concepts/containers/container-lifecycle-hooks/
short_description: >
The lifecycle hooks expose events in the container management lifecycle and let the user run code when the events occur.
aka:
tags:
- extension
---
The lifecycle hooks expose events in the {{< glossary_tooltip text="Container" term_id="container" >}}container management lifecycle and let the user run code when the events occur.
<!--more-->
Two hooks are exposed to Containers: PostStart which executes immediately after a container is created and PreStop which is blocking and is called immediately before a container is terminated.