mirror of
https://github.com/kata-containers/kata-containers.git
synced 2026-07-12 18:46:35 +00:00
Do not kill containers immediately, instead use Kubernetes' default termination grace period. Signed-off-by: Manuel Huber <manuelh@nvidia.com>
20 lines
399 B
YAML
20 lines
399 B
YAML
#
|
|
# Copyright (c) 2019 Intel Corporation
|
|
#
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
#
|
|
apiVersion: batch/v1
|
|
kind: Job
|
|
metadata:
|
|
name: job-pi-test
|
|
spec:
|
|
template:
|
|
spec:
|
|
runtimeClassName: kata
|
|
containers:
|
|
- name: pi
|
|
image: quay.io/prometheus/busybox:latest
|
|
command: ["/bin/sh", "-c", "echo 'scale=5; 4*a(1)' | bc -l"]
|
|
restartPolicy: Never
|
|
backoffLimit: 4
|