Skip to content

Commit aabfcc6

Browse files
authored
Merge pull request #38987 from saschagrunert/seccomp-dev-1.27
Update seccomp docs for v1.27
2 parents f2d1a35 + c1bf88e commit aabfcc6

File tree

2 files changed

+18
-28
lines changed

2 files changed

+18
-28
lines changed

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

Lines changed: 13 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -737,23 +737,19 @@ When the PodSecurityPolicy admission controller admitted a Pod, the admission co
737737
modified the Pod to have this annotation.
738738
The value of the annotation was the name of the PodSecurityPolicy that was used for validation.
739739

740-
### seccomp.security.alpha.kubernetes.io/pod (deprecated) {#seccomp-security-alpha-kubernetes-io-pod}
741-
742-
This annotation has been deprecated since Kubernetes v1.19 and will become non-functional in a future release.
743-
please use the corresponding pod or container `securityContext.seccompProfile` field instead.
744-
To specify security settings for a Pod, include the `securityContext` field in the Pod specification.
745-
The [`securityContext`](/docs/reference/kubernetes-api/workload-resources/pod-v1/#security-context) field within a Pod's `.spec` defines pod-level security attributes.
746-
When you [specify the security context for a Pod](/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-pod),
747-
the settings you specify apply to all containers in that Pod.
748-
749-
### container.seccomp.security.alpha.kubernetes.io/[NAME] (deprecated) {#container-seccomp-security-alpha-kubernetes-io}
750-
751-
This annotation has been deprecated since Kubernetes v1.19 and will become non-functional in a future release.
752-
please use the corresponding pod or container `securityContext.seccompProfile` field instead.
753-
The tutorial [Restrict a Container's Syscalls with seccomp](/docs/tutorials/security/seccomp/) takes
754-
you through the steps you follow to apply a seccomp profile to a Pod or to one of
755-
its containers. That tutorial covers the supported mechanism for configuring seccomp in Kubernetes,
756-
based on setting `securityContext` within the Pod's `.spec`.
740+
### seccomp.security.alpha.kubernetes.io/pod (non-functional) {#seccomp-security-alpha-kubernetes-io-pod}
741+
742+
Older versions of Kubernetes allowed you to configure seccomp
743+
behavior using this {{< glossary_tooltip text="annotation" term_id="annotation" >}}.
744+
See [Restrict a Container's Syscalls with seccomp](/docs/tutorials/security/seccomp/) to
745+
learn the supported way to specify seccomp restrictions for a Pod.
746+
747+
### container.seccomp.security.alpha.kubernetes.io/[NAME] (non-functional) {#container-seccomp-security-alpha-kubernetes-io}
748+
749+
Older versions of Kubernetes allowed you to configure seccomp
750+
behavior using this {{< glossary_tooltip text="annotation" term_id="annotation" >}}.
751+
See [Restrict a Container's Syscalls with seccomp](/docs/tutorials/security/seccomp/) to
752+
learn the supported way to specify seccomp restrictions for a Pod.
757753

758754
### snapshot.storage.kubernetes.io/allowVolumeModeChange
759755

content/en/docs/tutorials/security/seccomp.md

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -275,17 +275,11 @@ Here's a manifest for that Pod:
275275
{{< codenew file="pods/security/seccomp/ga/audit-pod.yaml" >}}
276276

277277
{{< note >}}
278-
The functional support for the already deprecated seccomp annotations
279-
`seccomp.security.alpha.kubernetes.io/pod` (for the whole pod) and
280-
`container.seccomp.security.alpha.kubernetes.io/[name]` (for a single container)
281-
is going to be removed with a future release of Kubernetes. Please always use
282-
the native API fields in favor of the annotations.
283-
284-
Since Kubernetes v1.25, kubelets no longer support the annotations, use of the
285-
annotations in static pods is no longer supported, and the seccomp annotations
286-
are no longer auto-populated when pods with seccomp fields are created.
287-
Auto-population of the seccomp fields from the annotations is planned to be
288-
removed in a future release.
278+
Older versions of Kubernetes allowed you to configure seccomp
279+
behavior using {{< glossary_tooltip text="annotations" term_id="annotation" >}}.
280+
Kubernetes {{< skew currentVersion >}} only supports using fields within
281+
`.spec.securityContext` to configure seccomp, and this tutorial explains that
282+
approach.
289283
{{< /note >}}
290284

291285
Create the Pod in the cluster:

0 commit comments

Comments
 (0)