chore: scoutapm shutdown fix (#7538)
This commit is contained in:
parent
4e6abcbaad
commit
7541c21486
|
@ -26,6 +26,15 @@ spec:
|
||||||
- name: scoutapm
|
- name: scoutapm
|
||||||
image: "scoutapp/scoutapm:version-1.4.0"
|
image: "scoutapp/scoutapm:version-1.4.0"
|
||||||
imagePullPolicy: IfNotPresent
|
imagePullPolicy: IfNotPresent
|
||||||
|
# Replace command with one that will shut down on a TERM signal
|
||||||
|
# The ./core-agent start command line is from the scoutapm docker image
|
||||||
|
command:
|
||||||
|
- "sh"
|
||||||
|
- "-c"
|
||||||
|
- >-
|
||||||
|
trap './core-agent shutdown --tcp 0.0.0.0:6590' TERM;
|
||||||
|
./core-agent start --daemonize false --log-level debug --tcp 0.0.0.0:6590 &
|
||||||
|
wait $!
|
||||||
livenessProbe:
|
livenessProbe:
|
||||||
exec:
|
exec:
|
||||||
command:
|
command:
|
||||||
|
|
|
@ -24,6 +24,15 @@ spec:
|
||||||
- name: scoutapm
|
- name: scoutapm
|
||||||
image: "scoutapp/scoutapm:version-1.4.0"
|
image: "scoutapp/scoutapm:version-1.4.0"
|
||||||
imagePullPolicy: IfNotPresent
|
imagePullPolicy: IfNotPresent
|
||||||
|
# Replace command with one that will shut down on a TERM signal
|
||||||
|
# The ./core-agent start command line is from the scoutapm docker image
|
||||||
|
command:
|
||||||
|
- "sh"
|
||||||
|
- "-c"
|
||||||
|
- >-
|
||||||
|
trap './core-agent shutdown --tcp 0.0.0.0:6590' TERM;
|
||||||
|
./core-agent start --daemonize false --log-level debug --tcp 0.0.0.0:6590 &
|
||||||
|
wait $!
|
||||||
livenessProbe:
|
livenessProbe:
|
||||||
exec:
|
exec:
|
||||||
command:
|
command:
|
||||||
|
|
Loading…
Reference in a new issue