fix queue worker manifest
This commit is contained in:
parent
2b494c7324
commit
fd0f14fc9c
1 changed files with 4 additions and 3 deletions
|
|
@ -188,6 +188,10 @@ spec:
|
|||
containers:
|
||||
- name: ${CI_PROJECT_PATH_SLUG}-queue-worker
|
||||
image: $IMAGE_TAG
|
||||
lifecycle:
|
||||
preStop:
|
||||
exec:
|
||||
command: ["/bin/sh","-c","kill -s TERM 1; while test $(ps ax | grep -v grep | grep bash | wc -l) -gt 0; do sleep 2s; done"]
|
||||
resources:
|
||||
limits:
|
||||
memory: 512Mi
|
||||
|
|
@ -196,9 +200,6 @@ spec:
|
|||
- "bash"
|
||||
args:
|
||||
- "k8s-queues.sh"
|
||||
preStop:
|
||||
exec:
|
||||
command: ["/bin/sh","-c","kill -s TERM 1; while test $(ps ax | grep -v grep | grep bash | wc -l) -gt 0; do sleep 2s; done"]
|
||||
envFrom:
|
||||
- configMapRef:
|
||||
name: ${CI_PROJECT_PATH_SLUG}-config-map
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue