Skip to content

Commit 1922a3d

Browse files
authored
Merge pull request #29685 from Guneetconvent2002/dev-1.23
Divided headings: labels, annotations, taints
2 parents 793c08e + 4a7a977 commit 1922a3d

File tree

1 file changed

+14
-4
lines changed

1 file changed

+14
-4
lines changed

content/en/docs/reference/labels-annotations-taints.md

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -427,8 +427,18 @@ or updating objects that contain Pod templates, such as Deployments, Jobs, State
427427
See [Enforcing Pod Security at the Namespace Level](/docs/concepts/security/pod-security-admission)
428428
for more information.
429429

430-
## seccomp.security.alpha.kubernetes.io/pod and container.seccomp.security.alpha.kubernetes.io/[NAME] (deprecated)
430+
## seccomp.security.alpha.kubernetes.io/pod (deprecated) {#seccomp-security-alpha-kubernetes-io-pod}
431431

432-
The seccomp annotations have been deprecated since Kubernetes v1.19 and will
433-
become non-functional in v1.25. Please use the `seccompProfile` of the
434-
`SecurityContext` instead.
432+
This annotation has been deprecated since Kubernetes v1.19 and will become non-functional in v1.25.
433+
To specify security settings for a Pod, include the `securityContext` field in the Pod specification.
434+
The [`securityContext`](/docs/reference/kubernetes-api/workload-resources/pod-v1/#security-context) field within a Pod's `.spec` defines pod-level security attributes.
435+
When you [specify the security context for a Pod](/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-pod),
436+
the settings you specify apply to all containers in that Pod.
437+
438+
## container.seccomp.security.alpha.kubernetes.io/[NAME] {#container-seccomp-security-alpha-kubernetes-io}
439+
440+
This annotation has been deprecated since Kubernetes v1.19 and will become non-functional in v1.25.
441+
The tutorial [Restrict a Container's Syscalls with seccomp](/docs/tutorials/clusters/seccomp/) takes
442+
you through the steps you follow to apply a seccomp profile to a Pod or to one of
443+
its containers. That tutorial covers the supported mechanism for configuring seccomp in Kubernetes,
444+
based on setting `securityContext` within the Pod's `.spec`.

0 commit comments

Comments
 (0)