Gracefully shutdown executor on SIGTERM

Depends-On: https://review.opendev.org/c/zuul/zuul/+/799701
Change-Id: Id8d9208ee5d5c2c76b181657af0f7a4497c159ec
changes/65/800265/2
Albin Vass 1 year ago committed by Tristan Cacqueray
parent 63685df30b
commit 61ccd501c8
  1. 9
      zuul_operator/templates/zuul.yaml

@ -332,6 +332,9 @@ spec:
ports:
- name: logs
containerPort: 7900
env:
- name: ZUUL_EXECUTOR_SIGTERM_GRACEFUL
value: "1"
volumeMounts:
- name: zuul-config
mountPath: /etc/zuul
@ -359,12 +362,6 @@ spec:
securityContext:
privileged: true
terminationGracePeriodSeconds: {{ spec.executor.terminationGracePeriodSeconds }}
lifecycle:
preStop:
exec:
command: [
"/usr/local/bin/zuul-executor", "graceful"
]
volumes:
- name: zuul-var
emptyDir: {}

Loading…
Cancel
Save