Add preStop hook for UWSGI

Change-Id: Ie0fa5e31d4d66b11567b2241ca24ac5ac8010fb7
Reference: https://stackoverflow.com/q/54459949
This commit is contained in:
Mohammed Naser 2020-07-06 21:31:12 -04:00
parent 5da16999fc
commit 212cc5998a
4 changed files with 16 additions and 0 deletions

View File

@ -78,6 +78,10 @@ spec:
readinessProbe:
tcpSocket:
port: heat-{{ component }}
lifecycle:
preStop:
exec:
command: ["/bin/sleep", "5"]
{% endif %}
resources:
limits:

View File

@ -56,6 +56,10 @@ spec:
readinessProbe:
tcpSocket:
port: horizon
lifecycle:
preStop:
exec:
command: ["/bin/sleep", "5"]
resources:
limits:
cpu: 2000m

View File

@ -116,6 +116,10 @@ spec:
httpGet:
path: /v3
port: keystone
lifecycle:
preStop:
exec:
command: ["/bin/sleep", "5"]
resources:
limits:
cpu: 2000m

View File

@ -71,6 +71,10 @@ spec:
readinessProbe:
tcpSocket:
port: magnum-{{ component }}
lifecycle:
preStop:
exec:
command: ["/bin/sleep", "5"]
{% endif %}
resources:
limits: