mirror of
https://github.com/kata-containers/kata-containers.git
synced 2026-04-04 11:03:52 +00:00
Do not kill containers immediately, instead use Kubernetes' default termination grace period. Signed-off-by: Manuel Huber <manuelh@nvidia.com>
29 lines
686 B
YAML
29 lines
686 B
YAML
#
|
|
# Copyright (c) 2019 Intel Corporation
|
|
#
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
#
|
|
apiVersion: v1
|
|
kind: Pod
|
|
metadata:
|
|
name: initcontainer-shared-volume
|
|
spec:
|
|
runtimeClassName: kata
|
|
initContainers:
|
|
- name: first
|
|
image: quay.io/prometheus/busybox:latest
|
|
command: [ "sh", "-c", "echo ${EPOCHREALTIME//.} > /volume/initContainer" ]
|
|
volumeMounts:
|
|
- mountPath: /volume
|
|
name: volume
|
|
containers:
|
|
- name: last
|
|
image: quay.io/prometheus/busybox:latest
|
|
command: [ "sh", "-c", "echo ${EPOCHREALTIME//.} > /volume/container; tail -f /dev/null" ]
|
|
volumeMounts:
|
|
- mountPath: /volume
|
|
name: volume
|
|
volumes:
|
|
- name: volume
|
|
emptyDir: {}
|