mirror of
https://github.com/containers/podman.git
synced 2025-12-01 18:49:18 +08:00
Add support for pids-limit annotation for podman kube play.
This commit adds new annotation called: io.podman.annotations.pids-limit/$ctrname This annotation is used to define the PIDsLimit for a particular pod. It is also automatically defined when newly added --pids-limit option is used. Fixes: #24418 Signed-off-by: Jan Kaluza <jkaluza@redhat.com>
This commit is contained in:
@@ -169,6 +169,9 @@ const (
|
||||
// KubeImageAutomountAnnotation
|
||||
KubeImageAutomountAnnotation = "io.podman.annotations.kube.image.volumes.mount"
|
||||
|
||||
// PIDsLimitAnnotation is used to limit the number of PIDs
|
||||
PIDsLimitAnnotation = "io.podman.annotations.pids-limit"
|
||||
|
||||
// TotalAnnotationSizeLimitB is the max length of annotations allowed by Kubernetes.
|
||||
TotalAnnotationSizeLimitB int = 256 * (1 << 10) // 256 kB
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user