Container Lifecycle
Kubernetes supports the postStart and preStop lifecycle events. Kubernetes sends the postStart event immediately after a Container is started, and it sends the preStop event immediately before the Container is terminated.
-
After logging into OmniDeq, click on the Project where you want to manage the container lifecycle and click on
Cruize
. -
Click on blueprint version count on blueprint card. After clicking to count, blueprint versions page will be displayed which contains list of blueprint versions.
-
Click on View configurations kebab menu option or click on blueprint version name then of blueprint version to view blueprint configurations. Go to Deployments tab and click on
Edit deployment definition
from Action column of any deployment. -
Then deployment definition page will be opened, now go to
Containers
tab. Select container and then go toLifecycle
tab as shown in the below image.
Adding a new Lifecycle
-
Click on
Add New Lifecycle
button and after clicking following form will be displayed. -
Add Lifecycle by entering the below details:
PreStop Exec command Enter comma separated pre stop commands PostStart Exec command Enter comma separated post start commands
-
Provide all commands and click on
Save
button
Edit Lifecycle
-
Click on
Edit icon
to edit lifecycle commands as shown in below image.
Delete Lifecycle
-
Click on
Delete icon
to delete lifecycle as shown in below image.