Skip to content
Docs Try Aspire

CapabilitiesV1 Properties

Class Properties 2 members
Represents the capabilities configuration for a Kubernetes container. Capabilities allow fine-grained control over kernel-level privileges granted to a specific container in a Pod.
Add Section titled Add List<string>
Gets a list of capabilities to add to the container.
public List<string> Add { get; }
Adding specific capabilities enhances the container's permissions. Use this property to specify the capabilities required by the container.
Drop Section titled Drop List<string>
Gets a list of capabilities to be dropped from the container's security context. Dropping capabilities reduces the container's privileges, enhancing security.
public List<string> Drop { get; }