mirror of
https://github.com/kata-containers/kata-containers.git
synced 2026-07-28 10:26:16 +00:00
Add explicit securityContext values to static Kubernetes policy workloads whose generated policy now includes image-derived identity data. Refresh existing guest-pull comments to point at the Limitations documentation instead of the old issue link. Signed-off-by: Manuel Huber <manuelh@nvidia.com> Assisted-by: OpenAI Codex <codex@openai.com>
29 lines
638 B
YAML
29 lines
638 B
YAML
#
|
|
# Copyright (c) 2019 Intel Corporation
|
|
#
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
#
|
|
apiVersion: v1
|
|
kind: Pod
|
|
metadata:
|
|
name: sysctl-test
|
|
spec:
|
|
runtimeClassName: kata
|
|
securityContext:
|
|
supplementalGroups: [10]
|
|
sysctls:
|
|
- name: kernel.shm_rmid_forced
|
|
value: "0"
|
|
containers:
|
|
- name: test
|
|
securityContext:
|
|
privileged: true
|
|
image: quay.io/prometheus/busybox:latest
|
|
command: ["tail", "-f", "/dev/null"]
|
|
initContainers:
|
|
- name: init-sys
|
|
securityContext:
|
|
privileged: true
|
|
image: quay.io/prometheus/busybox:latest
|
|
command: ['sh', '-c', 'echo "64000" > /proc/sys/vm/max_map_count']
|