Add-AksHciGmsaCredentialSpec

Áttekintés

Hozzáad egy hitelesítőadat-specifikációt a fürt gMSA-üzemelő példányaihoz.

Syntax

Add-AksHciGmsaCredentialSpec -name <String> 
                             -credSpecFilePath <String>
                             -credSpecName <String>
                             -clusterRoleName <String>
                             -secretName <String>
                             [-secretNamespace <String>]
                             [-serviceAccount <String>]
                             [-overwrite][-activity <String>]                      

Description

Hozzáad egy hitelesítőadat-specifikációt a fürt gMSA-üzemelő példányaihoz.

Példák

Példa

Add-AksHciGMSACredentialSpec -Name mycluster -CredFilePath .\credspectest.json -CredSpecName credspec-mynewcluster -secretName mysecret -clusterRoleName clusterrole-mynewcluster

Paraméterek

-név

A Kubernetes-fürt alfanumerikus neve.

Type: System.String
Parameter Sets: (All)
Aliases:

Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-credSpecFilePath

A JSON cred spec fájl elérési útja.

Type: System.String
Parameter Sets: (All)
Aliases:

Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-credSpecName

A felhasználó által kijelölni kívánt Kubernetes hitelesítőadat-spec objektum neve.

Type: System.String
Parameter Sets: (All)
Aliases:

Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-clusterRoleName

A Kubernetes gMSA credspec objektum használatához hozzárendelt Kubernetes-fürtszerepkörök neve.

Type: System.String
Parameter Sets: (All)
Aliases:

Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-secretName

Az Active Directory felhasználói hitelesítő adatait és a gMSA-tartományt tároló Kubernetes titkos objektum neve.

Type: System.String
Parameter Sets: (All)
Aliases:

Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-secretNamespace

Névtér, amelyben a Kubernetes titkos objektum található.

Type: System.String
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: Default
Accept pipeline input: False
Accept wildcard characters: False

-serviceAccount

A k8s gMSA credspec objektum olvasásához hozzárendelt Kubernetes-szolgáltatásfiók neve.

Type: System.String
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: Default
Accept pipeline input: False
Accept wildcard characters: False

-Felülírja

Felülírja a meglévő fürt- és szolgáltatásfiókszerepkörök kötését.

Type: System.Management.Automation.SwitchParameter
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-Tevékenység

A tevékenység neve az előrehaladás frissítésekor.

Type: System.String
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

Következő lépések

AksHci PowerShell-referencia