Share via


WindowsSecurityContextOptionsV1 Class

Definition

Represents the Windows-specific security context options for a container or pod in Kubernetes.

[YamlDotNet.Serialization.YamlSerializable]
public sealed class WindowsSecurityContextOptionsV1
[<YamlDotNet.Serialization.YamlSerializable>]
type WindowsSecurityContextOptionsV1 = class
Public NotInheritable Class WindowsSecurityContextOptionsV1
Inheritance
WindowsSecurityContextOptionsV1
Attributes
YamlDotNet.Serialization.YamlSerializableAttribute

Constructors

WindowsSecurityContextOptionsV1()

Properties

GmsaCredentialSpec

Gets or sets the contents of the GMSA (Group Managed Service Account) credential specification. This property provides the serialized credential spec details used for configuring and authorizing Windows containers to use a GMSA in Kubernetes environments.

GmsaCredentialSpecName

Gets or sets the name of the GMSA (Group Managed Service Account) credential specification to be used for configuring Windows security context for a container.

HostProcess

Gets or sets a value indicating whether the container should run as a Host Process. When set to true, it enables the container to run with permissions on the host machine, effectively allowing operations similar to a process running directly on the host. This setting is platform-specific and primarily applicable for Windows-based containers.

RunAsUserName

Specifies the username of the account to run the process as, within the context of a Windows container.

Applies to