mirror of
https://github.com/kata-containers/kata-containers.git
synced 2026-05-19 06:05:45 +00:00
Do not kill containers immediately, instead use Kubernetes' default termination grace period. Signed-off-by: Manuel Huber <manuelh@nvidia.com>
26 lines
609 B
YAML
26 lines
609 B
YAML
#
|
|
# Copyright (c) 2022 AntGroup Corporation
|
|
#
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
#
|
|
apiVersion: v1
|
|
kind: Pod
|
|
metadata:
|
|
name: busybox
|
|
spec:
|
|
shareProcessNamespace: true
|
|
runtimeClassName: kata
|
|
initContainers:
|
|
- name: first
|
|
image: quay.io/prometheus/busybox:latest
|
|
command: [ "sh", "-c", "echo 'nohup tail -f /dev/null >/dev/null 2>&1 &' > /init.sh && chmod +x /init.sh && /init.sh" ]
|
|
containers:
|
|
- name: first-test-container
|
|
image: quay.io/prometheus/busybox:latest
|
|
env:
|
|
- name: CONTAINER_NAME
|
|
value: "first-test-container"
|
|
command:
|
|
- sleep
|
|
- "300"
|