Skip to content

Commit

Permalink
Merge pull request #621 from thockin/k8s-io-grace
Browse files Browse the repository at this point in the history
Set a longer grace period for k8s.io nginx
  • Loading branch information
k8s-ci-robot authored Mar 2, 2020
2 parents ed67fa3 + a269249 commit 6b5fc47
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion k8s.io/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ spec:
app: k8s-io
version: v1
spec:
terminationGracePeriodSeconds: 5
terminationGracePeriodSeconds: 30
volumes:
- name: nginx
configMap:
Expand Down Expand Up @@ -55,6 +55,10 @@ spec:
initialDelaySeconds: 3
timeoutSeconds: 2
failureThreshold: 2
lifecycle:
preStop:
exec: # nginx likes to terminate ASAP
command: [ "/bin/sleep", "30" ]
volumeMounts:
- name: nginx
mountPath: /etc/nginx
Expand Down

0 comments on commit 6b5fc47

Please sign in to comment.