WindowsSecurityContextOptionsV1 Properties
Class Properties 4 members
Represents the Windows-specific security context options for a container or pod in Kubernetes.
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.
public string GmsaCredentialSpec { get; set; } 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.
public string GmsaCredentialSpecName { get; set; }Remarks
This property identifies the GMSA credential spec configuration by name, which is often used to configure the access permissions and identity under which a Windows container operates. The GMSA Credential Spec Name should correspond to a previously configured GMSA resource in the system.
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.
public bool? HostProcess { get; set; } Specifies the username of the account to run the process as, within the context of a Windows container.
public string RunAsUserName { get; set; }Remarks
This property is used to set the user identity when executing a process under a specific Windows Security Context. Ensure the specified username exists and has the appropriate permissions within the container.