Skip to content
DocsTry Aspire
DocsTry

CapabilitiesV1 Properties

ClassProperties2 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.
AddSection titled AddList<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.
DropSection titled DropList<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; }