WindowsSecurityContextOptionsV1
Classsealednet10.0
Represents the Windows-specific security context options for a container or pod in Kubernetes.
namespace Aspire.Hosting.Kubernetes.Resources;
public sealed class WindowsSecurityContextOptionsV1{ // ...}5 members
Constructors1
Section titled ConstructorsProperties4
Section titled PropertiesGmsaCredentialSpec get; setstring 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 get; setstring 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 get; setbool? 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 get; setstring Specifies the username of the account to run the process as, within the context of a Windows container.