mirror of
https://github.com/kata-containers/kata-containers.git
synced 2026-02-21 14:22:24 +00:00
tests: Remove terminationGracePeriod in manifests
Do not kill containers immediately, instead use Kubernetes' default termination grace period. Signed-off-by: Manuel Huber <manuelh@nvidia.com>
This commit is contained in:
committed by
manuelh-dev
parent
0d35b36652
commit
6438fe7f2d
@@ -8,7 +8,6 @@ kind: Pod
|
||||
metadata:
|
||||
name: busybox
|
||||
spec:
|
||||
terminationGracePeriodSeconds: 0
|
||||
shareProcessNamespace: true
|
||||
runtimeClassName: kata
|
||||
containers:
|
||||
|
||||
@@ -8,7 +8,6 @@ kind: Pod
|
||||
metadata:
|
||||
name: POD_NAME
|
||||
spec:
|
||||
terminationGracePeriodSeconds: 0
|
||||
runtimeClassName: kata
|
||||
shareProcessNamespace: true
|
||||
containers:
|
||||
|
||||
@@ -8,7 +8,6 @@ kind: Pod
|
||||
metadata:
|
||||
name: initcontainer-shared-volume
|
||||
spec:
|
||||
terminationGracePeriodSeconds: 0
|
||||
runtimeClassName: kata
|
||||
initContainers:
|
||||
- name: first
|
||||
|
||||
@@ -8,7 +8,6 @@ kind: Pod
|
||||
metadata:
|
||||
name: busybox
|
||||
spec:
|
||||
terminationGracePeriodSeconds: 0
|
||||
shareProcessNamespace: true
|
||||
runtimeClassName: kata
|
||||
initContainers:
|
||||
|
||||
@@ -16,7 +16,6 @@ spec:
|
||||
labels:
|
||||
jobgroup: jobtest
|
||||
spec:
|
||||
terminationGracePeriodSeconds: 0
|
||||
runtimeClassName: kata
|
||||
containers:
|
||||
- name: test
|
||||
|
||||
@@ -10,7 +10,6 @@ metadata:
|
||||
spec:
|
||||
template:
|
||||
spec:
|
||||
terminationGracePeriodSeconds: 0
|
||||
runtimeClassName: kata
|
||||
containers:
|
||||
- name: pi
|
||||
|
||||
@@ -23,7 +23,6 @@ spec:
|
||||
role: master
|
||||
tier: backend
|
||||
spec:
|
||||
terminationGracePeriodSeconds: 0
|
||||
runtimeClassName: kata
|
||||
securityContext:
|
||||
runAsUser: 2000
|
||||
|
||||
@@ -23,7 +23,6 @@ spec:
|
||||
role: master
|
||||
tier: backend
|
||||
spec:
|
||||
terminationGracePeriodSeconds: 0
|
||||
runtimeClassName: kata
|
||||
securityContext:
|
||||
runAsUser: 2000
|
||||
|
||||
@@ -23,7 +23,6 @@ spec:
|
||||
role: master
|
||||
tier: backend
|
||||
spec:
|
||||
terminationGracePeriodSeconds: 0
|
||||
runtimeClassName: kata
|
||||
securityContext:
|
||||
runAsUser: 65534
|
||||
|
||||
@@ -23,7 +23,6 @@ spec:
|
||||
role: master
|
||||
tier: backend
|
||||
spec:
|
||||
terminationGracePeriodSeconds: 0
|
||||
runtimeClassName: kata
|
||||
securityContext:
|
||||
runAsUser: 2000
|
||||
|
||||
@@ -23,7 +23,6 @@ spec:
|
||||
role: master
|
||||
tier: backend
|
||||
spec:
|
||||
terminationGracePeriodSeconds: 0
|
||||
runtimeClassName: kata
|
||||
securityContext:
|
||||
runAsUser: 1000
|
||||
|
||||
@@ -8,7 +8,6 @@ kind: Pod
|
||||
metadata:
|
||||
name: hard-coded-policy-pod
|
||||
spec:
|
||||
terminationGracePeriodSeconds: 0
|
||||
shareProcessNamespace: true
|
||||
runtimeClassName: kata
|
||||
containers:
|
||||
|
||||
@@ -10,7 +10,6 @@ metadata:
|
||||
spec:
|
||||
template:
|
||||
spec:
|
||||
terminationGracePeriodSeconds: 0
|
||||
runtimeClassName: kata
|
||||
containers:
|
||||
- name: hello
|
||||
|
||||
@@ -8,7 +8,6 @@ kind: Pod
|
||||
metadata:
|
||||
name: policy-pod-pvc
|
||||
spec:
|
||||
terminationGracePeriodSeconds: 0
|
||||
runtimeClassName: kata
|
||||
containers:
|
||||
- name: busybox
|
||||
|
||||
@@ -9,7 +9,6 @@ metadata:
|
||||
name: policy-pod
|
||||
uid: policy-pod-uid
|
||||
spec:
|
||||
terminationGracePeriodSeconds: 0
|
||||
runtimeClassName: kata
|
||||
containers:
|
||||
- name: prometheus
|
||||
|
||||
@@ -17,7 +17,6 @@ spec:
|
||||
labels:
|
||||
app: policy-nginx-rc
|
||||
spec:
|
||||
terminationGracePeriodSeconds: 0
|
||||
runtimeClassName: kata
|
||||
containers:
|
||||
- name: nginxtest
|
||||
|
||||
@@ -8,7 +8,6 @@ kind: Pod
|
||||
metadata:
|
||||
name: set-keys-test
|
||||
spec:
|
||||
terminationGracePeriodSeconds: 0
|
||||
shareProcessNamespace: true
|
||||
runtimeClassName: kata
|
||||
containers:
|
||||
|
||||
@@ -9,7 +9,6 @@ kind: Pod
|
||||
metadata:
|
||||
name: handlers
|
||||
spec:
|
||||
terminationGracePeriodSeconds: 0
|
||||
runtimeClassName: kata
|
||||
containers:
|
||||
- name: handlers-container
|
||||
|
||||
@@ -17,7 +17,6 @@ spec:
|
||||
labels:
|
||||
app: nginx
|
||||
spec:
|
||||
terminationGracePeriodSeconds: 0
|
||||
runtimeClassName: kata
|
||||
containers:
|
||||
- name: nginx
|
||||
|
||||
@@ -8,7 +8,6 @@ kind: Pod
|
||||
metadata:
|
||||
name: besteffort-test
|
||||
spec:
|
||||
terminationGracePeriodSeconds: 0
|
||||
runtimeClassName: kata
|
||||
containers:
|
||||
- name: qos-besteffort
|
||||
|
||||
@@ -3,7 +3,6 @@ kind: Pod
|
||||
metadata:
|
||||
name: pod-block-pv
|
||||
spec:
|
||||
terminationGracePeriodSeconds: 0
|
||||
runtimeClassName: kata
|
||||
containers:
|
||||
- name: my-container
|
||||
|
||||
@@ -8,7 +8,6 @@ kind: Pod
|
||||
metadata:
|
||||
name: burstable-test
|
||||
spec:
|
||||
terminationGracePeriodSeconds: 0
|
||||
runtimeClassName: kata
|
||||
containers:
|
||||
- name: qos-burstable
|
||||
|
||||
@@ -8,7 +8,6 @@ kind: Pod
|
||||
metadata:
|
||||
name: pod-caps
|
||||
spec:
|
||||
terminationGracePeriodSeconds: 0
|
||||
runtimeClassName: kata
|
||||
containers:
|
||||
- name: test-container
|
||||
|
||||
@@ -8,7 +8,6 @@ kind: Pod
|
||||
metadata:
|
||||
name: config-env-test-pod
|
||||
spec:
|
||||
terminationGracePeriodSeconds: 0
|
||||
runtimeClassName: kata
|
||||
containers:
|
||||
- name: test-container
|
||||
|
||||
@@ -8,7 +8,6 @@ kind: Pod
|
||||
metadata:
|
||||
name: default-cpu-test
|
||||
spec:
|
||||
terminationGracePeriodSeconds: 0
|
||||
runtimeClassName: kata
|
||||
containers:
|
||||
- name: default-cpu-demo-ctr
|
||||
|
||||
@@ -8,7 +8,6 @@ kind: Pod
|
||||
metadata:
|
||||
name: constraints-cpu-test
|
||||
spec:
|
||||
terminationGracePeriodSeconds: 0
|
||||
runtimeClassName: kata
|
||||
containers:
|
||||
- name: first-cpu-container
|
||||
|
||||
@@ -8,7 +8,6 @@ kind: Pod
|
||||
metadata:
|
||||
name: custom-dns-test
|
||||
spec:
|
||||
terminationGracePeriodSeconds: 0
|
||||
runtimeClassName: kata
|
||||
containers:
|
||||
- name: test
|
||||
|
||||
@@ -8,7 +8,6 @@ kind: Pod
|
||||
metadata:
|
||||
name: sharevol-kata
|
||||
spec:
|
||||
terminationGracePeriodSeconds: 0
|
||||
runtimeClassName: kata
|
||||
containers:
|
||||
- name: test
|
||||
|
||||
@@ -8,7 +8,6 @@ kind: Pod
|
||||
metadata:
|
||||
name: test-env
|
||||
spec:
|
||||
terminationGracePeriodSeconds: 0
|
||||
runtimeClassName: kata
|
||||
containers:
|
||||
- name: test-container
|
||||
|
||||
@@ -8,7 +8,6 @@ kind: Pod
|
||||
metadata:
|
||||
name: test-file-volume
|
||||
spec:
|
||||
terminationGracePeriodSeconds: 0
|
||||
runtimeClassName: kata
|
||||
restartPolicy: Never
|
||||
nodeName: NODE
|
||||
|
||||
@@ -8,7 +8,6 @@ kind: Pod
|
||||
metadata:
|
||||
name: footubuntu
|
||||
spec:
|
||||
terminationGracePeriodSeconds: 0
|
||||
runtimeClassName: kata
|
||||
volumes:
|
||||
- name: runv
|
||||
|
||||
@@ -8,7 +8,6 @@ kind: Pod
|
||||
metadata:
|
||||
name: qos-test
|
||||
spec:
|
||||
terminationGracePeriodSeconds: 0
|
||||
runtimeClassName: kata
|
||||
containers:
|
||||
- name: qos-guaranteed
|
||||
|
||||
@@ -9,7 +9,6 @@ kind: Pod
|
||||
metadata:
|
||||
name: test-pod-hostname
|
||||
spec:
|
||||
terminationGracePeriodSeconds: 0
|
||||
runtimeClassName: kata
|
||||
restartPolicy: Never
|
||||
containers:
|
||||
|
||||
@@ -9,7 +9,6 @@ kind: Pod
|
||||
metadata:
|
||||
name: hostpath-kmsg
|
||||
spec:
|
||||
terminationGracePeriodSeconds: 0
|
||||
runtimeClassName: kata
|
||||
restartPolicy: Never
|
||||
volumes:
|
||||
|
||||
@@ -10,7 +10,6 @@ metadata:
|
||||
test: liveness-test
|
||||
name: liveness-http
|
||||
spec:
|
||||
terminationGracePeriodSeconds: 0
|
||||
runtimeClassName: kata
|
||||
containers:
|
||||
- name: liveness
|
||||
|
||||
@@ -10,7 +10,6 @@ metadata:
|
||||
test: liveness
|
||||
name: liveness-exec
|
||||
spec:
|
||||
terminationGracePeriodSeconds: 0
|
||||
runtimeClassName: kata
|
||||
containers:
|
||||
- name: liveness
|
||||
|
||||
@@ -8,7 +8,6 @@ kind: Pod
|
||||
metadata:
|
||||
name: memory-test
|
||||
spec:
|
||||
terminationGracePeriodSeconds: 0
|
||||
runtimeClassName: kata
|
||||
containers:
|
||||
- name: memory-test-ctr
|
||||
|
||||
@@ -23,7 +23,6 @@ kind: Pod
|
||||
metadata:
|
||||
name: nested-configmap-secret-pod
|
||||
spec:
|
||||
terminationGracePeriodSeconds: 0
|
||||
runtimeClassName: kata
|
||||
containers:
|
||||
- name: test-container
|
||||
|
||||
@@ -8,7 +8,6 @@ kind: Pod
|
||||
metadata:
|
||||
name: cpu-test
|
||||
spec:
|
||||
terminationGracePeriodSeconds: 0
|
||||
runtimeClassName: kata
|
||||
containers:
|
||||
- name: c1
|
||||
|
||||
@@ -8,7 +8,6 @@ kind: Pod
|
||||
metadata:
|
||||
name: optional-empty-config-test-pod
|
||||
spec:
|
||||
terminationGracePeriodSeconds: 0
|
||||
runtimeClassName: kata
|
||||
containers:
|
||||
- name: test-container
|
||||
|
||||
@@ -8,7 +8,6 @@ kind: Pod
|
||||
metadata:
|
||||
name: optional-empty-secret-test-pod
|
||||
spec:
|
||||
terminationGracePeriodSeconds: 0
|
||||
runtimeClassName: kata
|
||||
containers:
|
||||
- name: test-container
|
||||
|
||||
@@ -9,7 +9,6 @@ kind: Pod
|
||||
metadata:
|
||||
name: privileged
|
||||
spec:
|
||||
terminationGracePeriodSeconds: 0
|
||||
runtimeClassName: kata
|
||||
restartPolicy: Never
|
||||
containers:
|
||||
|
||||
@@ -8,7 +8,6 @@ kind: Pod
|
||||
metadata:
|
||||
name: test-projected-volume
|
||||
spec:
|
||||
terminationGracePeriodSeconds: 0
|
||||
runtimeClassName: kata
|
||||
containers:
|
||||
- name: test-projected-volume
|
||||
|
||||
@@ -17,7 +17,6 @@ spec:
|
||||
labels:
|
||||
purpose: quota-demo
|
||||
spec:
|
||||
terminationGracePeriodSeconds: 0
|
||||
runtimeClassName: kata
|
||||
containers:
|
||||
- name: pod-quota-demo
|
||||
|
||||
@@ -8,7 +8,6 @@ kind: Pod
|
||||
metadata:
|
||||
name: test-readonly-volume
|
||||
spec:
|
||||
terminationGracePeriodSeconds: 0
|
||||
runtimeClassName: kata
|
||||
restartPolicy: Never
|
||||
volumes:
|
||||
|
||||
@@ -11,7 +11,6 @@ metadata:
|
||||
io.katacontainers.config.runtime.disable_guest_seccomp: "false"
|
||||
spec:
|
||||
runtimeClassName: kata
|
||||
terminationGracePeriodSeconds: 0
|
||||
restartPolicy: Never
|
||||
containers:
|
||||
- name: busybox
|
||||
|
||||
@@ -8,7 +8,6 @@ kind: Pod
|
||||
metadata:
|
||||
name: secret-envars-test-pod
|
||||
spec:
|
||||
terminationGracePeriodSeconds: 0
|
||||
runtimeClassName: kata
|
||||
containers:
|
||||
- name: envars-test-container
|
||||
|
||||
@@ -8,7 +8,6 @@ kind: Pod
|
||||
metadata:
|
||||
name: secret-test-pod
|
||||
spec:
|
||||
terminationGracePeriodSeconds: 0
|
||||
runtimeClassName: kata
|
||||
containers:
|
||||
- name: test-container
|
||||
|
||||
@@ -8,7 +8,6 @@ kind: Pod
|
||||
metadata:
|
||||
name: security-context-test
|
||||
spec:
|
||||
terminationGracePeriodSeconds: 0
|
||||
runtimeClassName: kata
|
||||
securityContext:
|
||||
runAsUser: 1000
|
||||
|
||||
@@ -8,7 +8,6 @@ kind: Pod
|
||||
metadata:
|
||||
name: test-shared-volume
|
||||
spec:
|
||||
terminationGracePeriodSeconds: 0
|
||||
runtimeClassName: kata
|
||||
restartPolicy: Never
|
||||
volumes:
|
||||
|
||||
@@ -8,7 +8,6 @@ kind: Pod
|
||||
metadata:
|
||||
name: sysctl-test
|
||||
spec:
|
||||
terminationGracePeriodSeconds: 0
|
||||
runtimeClassName: kata
|
||||
securityContext:
|
||||
sysctls:
|
||||
|
||||
@@ -10,7 +10,6 @@ metadata:
|
||||
labels:
|
||||
app: tcp-liveness
|
||||
spec:
|
||||
terminationGracePeriodSeconds: 0
|
||||
runtimeClassName: kata
|
||||
containers:
|
||||
- name: tcp-liveness
|
||||
|
||||
@@ -8,7 +8,6 @@ apiVersion: v1
|
||||
metadata:
|
||||
name: pv-pod
|
||||
spec:
|
||||
terminationGracePeriodSeconds: 0
|
||||
runtimeClassName: kata
|
||||
nodeName: NODE
|
||||
volumes:
|
||||
|
||||
@@ -23,7 +23,6 @@ spec:
|
||||
role: master
|
||||
tier: backend
|
||||
spec:
|
||||
terminationGracePeriodSeconds: 0
|
||||
runtimeClassName: kata
|
||||
containers:
|
||||
- name: master
|
||||
|
||||
@@ -17,7 +17,6 @@ spec:
|
||||
labels:
|
||||
app: nginx-rc-test
|
||||
spec:
|
||||
terminationGracePeriodSeconds: 0
|
||||
runtimeClassName: kata
|
||||
containers:
|
||||
- name: nginxtest
|
||||
|
||||
@@ -8,7 +8,6 @@ kind: Pod
|
||||
metadata:
|
||||
name: vfio
|
||||
spec:
|
||||
terminationGracePeriodSeconds: 0
|
||||
runtimeClassName: kata
|
||||
containers:
|
||||
- name: c1
|
||||
|
||||
@@ -8,7 +8,6 @@ kind: Pod
|
||||
metadata:
|
||||
name: test-sysbench
|
||||
spec:
|
||||
terminationGracePeriodSeconds: 0
|
||||
runtimeClassName: kata
|
||||
containers:
|
||||
- name: test-sysbench
|
||||
|
||||
@@ -26,4 +26,3 @@ spec:
|
||||
- name: iperf3-client
|
||||
image: networkstatic/iperf3
|
||||
command: ['/bin/sh', '-c', 'sleep infinity']
|
||||
terminationGracePeriodSeconds: 0
|
||||
|
||||
@@ -38,7 +38,6 @@ spec:
|
||||
ports:
|
||||
- containerPort: 5201
|
||||
name: server
|
||||
terminationGracePeriodSeconds: 0
|
||||
runtimeClassName: kata
|
||||
|
||||
---
|
||||
|
||||
@@ -7,7 +7,6 @@ kind: Pod
|
||||
metadata:
|
||||
name: latency-client
|
||||
spec:
|
||||
terminationGracePeriodSeconds: 0
|
||||
runtimeClassName: kata
|
||||
containers:
|
||||
- name: client-container
|
||||
|
||||
@@ -8,7 +8,6 @@ kind: Pod
|
||||
metadata:
|
||||
name: latency-server
|
||||
spec:
|
||||
terminationGracePeriodSeconds: 0
|
||||
runtimeClassName: kata
|
||||
containers:
|
||||
- name: server-container
|
||||
|
||||
@@ -16,7 +16,6 @@ spec:
|
||||
labels:
|
||||
app: nginx
|
||||
spec:
|
||||
terminationGracePeriodSeconds: 0
|
||||
runtimeClassName: kata
|
||||
containers:
|
||||
- name: nginx
|
||||
|
||||
@@ -16,7 +16,6 @@ spec:
|
||||
labels:
|
||||
purpose: pod-test
|
||||
spec:
|
||||
terminationGracePeriodSeconds: 0
|
||||
runtimeClassName: kata
|
||||
containers:
|
||||
- name: pod-test
|
||||
|
||||
@@ -8,7 +8,6 @@ kind: Pod
|
||||
metadata:
|
||||
name: stability-test
|
||||
spec:
|
||||
terminationGracePeriodSeconds: 0
|
||||
runtimeClassName: kata
|
||||
containers:
|
||||
- name: stability-test
|
||||
|
||||
@@ -8,7 +8,6 @@ kind: Pod
|
||||
metadata:
|
||||
name: stressng-test
|
||||
spec:
|
||||
terminationGracePeriodSeconds: 0
|
||||
runtimeClassName: kata
|
||||
containers:
|
||||
- name: stress-test
|
||||
|
||||
Reference in New Issue
Block a user