ContainerV1.SecurityContext Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets or sets the security context for a container.
[YamlDotNet.Serialization.YamlMember(Alias="securityContext")]
public Aspire.Hosting.Kubernetes.Resources.SecurityContextV1? SecurityContext { get; set; }
[<YamlDotNet.Serialization.YamlMember(Alias="securityContext")>]
member this.SecurityContext : Aspire.Hosting.Kubernetes.Resources.SecurityContextV1 with get, set
Public Property SecurityContext As SecurityContextV1
Property Value
- Attributes
-
YamlDotNet.Serialization.YamlMemberAttribute
Remarks
Represents the security options applied to the container, including capabilities, user/group configurations, and root filesystem attributes. This property is used to configure and customize security-related settings, such as user privileges, filesystem permissions, and security profiles (AppArmor, Seccomp).