Skip to content

Commit

Permalink
feat : add lifecycle hook to example application
Browse files Browse the repository at this point in the history
  • Loading branch information
ekgns33 committed May 15, 2024
1 parent 3533a68 commit 0501f74
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions config/samples/app_v1alpha1_application.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,10 @@ spec:
containerName: nginx
image: nginx:latest
containerPort: 80
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"]

0 comments on commit 0501f74

Please sign in to comment.