Gracefully shutdown executor on SIGTERM
Depends-On: https://review.opendev.org/c/zuul/zuul/+/799701 Change-Id: Id8d9208ee5d5c2c76b181657af0f7a4497c159ec
This commit is contained in:
parent
63685df30b
commit
61ccd501c8
|
@ -332,6 +332,9 @@ spec:
|
||||||
ports:
|
ports:
|
||||||
- name: logs
|
- name: logs
|
||||||
containerPort: 7900
|
containerPort: 7900
|
||||||
|
env:
|
||||||
|
- name: ZUUL_EXECUTOR_SIGTERM_GRACEFUL
|
||||||
|
value: "1"
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: zuul-config
|
- name: zuul-config
|
||||||
mountPath: /etc/zuul
|
mountPath: /etc/zuul
|
||||||
|
@ -359,12 +362,6 @@ spec:
|
||||||
securityContext:
|
securityContext:
|
||||||
privileged: true
|
privileged: true
|
||||||
terminationGracePeriodSeconds: {{ spec.executor.terminationGracePeriodSeconds }}
|
terminationGracePeriodSeconds: {{ spec.executor.terminationGracePeriodSeconds }}
|
||||||
lifecycle:
|
|
||||||
preStop:
|
|
||||||
exec:
|
|
||||||
command: [
|
|
||||||
"/usr/local/bin/zuul-executor", "graceful"
|
|
||||||
]
|
|
||||||
volumes:
|
volumes:
|
||||||
- name: zuul-var
|
- name: zuul-var
|
||||||
emptyDir: {}
|
emptyDir: {}
|
||||||
|
|
Loading…
Reference in New Issue