-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #142 from MediaMarktSaturn/container-lifecycle
[Application] Add Container lifecycle
- Loading branch information
Showing
4 changed files
with
54 additions
and
1 deletion.
There are no files selected for viewing
23 changes: 23 additions & 0 deletions
23
chart-tests/application/ci/test-image-lifecycle-values.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
resources: | ||
requests: | ||
cpu: 10m | ||
memory: 50Mi | ||
limits: | ||
cpu: 100m | ||
memory: 100Mi | ||
image: | ||
repository: busybox | ||
tag: stable | ||
container: | ||
args: ["sleep", "2000"] | ||
lifecycle: | ||
postStart: | ||
exec: | ||
command: ["/bin/sh", "-c", "echo $(ls /)"] | ||
preStop: | ||
exec: | ||
command: ["/bin/sh", "-c", "echo exiting"] | ||
livenessProbe: | ||
cmd: ['ls'] | ||
readinessProbe: | ||
cmd: ['ls'] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters