mirror of
https://github.com/openshift/openshift-docs.git
synced 2026-02-05 12:46:18 +01:00
24 lines
813 B
Plaintext
24 lines
813 B
Plaintext
:_mod-docs-content-type: PROCEDURE
|
|
[id="applying-custom-seccomp-profile_{context}"]
|
|
= Applying the custom seccomp profile to the workload
|
|
|
|
.Prerequisite
|
|
* The cluster administrator has set up the custom seccomp profile. For more details, see "Setting up the custom seccomp profile".
|
|
|
|
.Procedure
|
|
* Apply the seccomp profile to the workload by setting the `securityContext.seccompProfile.type` field as following:
|
|
+
|
|
.Example
|
|
+
|
|
[source, yaml]
|
|
----
|
|
spec:
|
|
securityContext:
|
|
seccompProfile:
|
|
type: Localhost
|
|
localhostProfile: <custom-name>.json <1>
|
|
----
|
|
<1> Provide the name of your custom seccomp profile.
|
|
+
|
|
Alternatively, you can use the pod annotations `seccomp.security.alpha.kubernetes.io/pod: localhost/<custom-name>.json`. However, this method is deprecated in {product-title} {product-version}.
|