Enable core dumps during tests (#2570)

This commit is contained in:
Manuel Alejandro de Brito Fontes 2018-05-26 11:08:38 -04:00 committed by GitHub
parent a5958c06b7
commit 15ffb51394
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -226,6 +226,18 @@ spec:
spec:
terminationGracePeriodSeconds: 0
serviceAccountName: nginx-ingress-serviceaccount
initContainers:
- name: enable-coredump
image: busybox
command:
- /bin/sh
- -c
- |
ulimit -c unlimited
echo "/tmp/core.%e.%p" > /proc/sys/kernel/core_pattern
sysctl -w fs.suid_dumpable=2
securityContext:
privileged: true
containers:
- name: nginx-ingress-controller
image: ingress-controller/nginx-ingress-controller:dev
@ -271,4 +283,4 @@ spec:
successThreshold: 1
timeoutSeconds: 1
securityContext:
runAsNonRoot: false
privileged: true