WindowsSecurityContextOptionsV1
Class sealed net10.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 PropertiesGmsaCredentialSpecget; 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.
GmsaCredentialSpecNameget; 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.
HostProcessget; 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.
RunAsUserNameget; setstring Specifies the username of the account to run the process as, within the context of a Windows container.