Repair-AksHciClusterCerts

Synopsis

Troubleshoots and fixes errors related to expired certificates for Kubernetes built-in components.

Syntax

Repair-AksHciClusterCerts -name 
                          -fixCloudCredentials
                         [-sshPrivateKeyFile <String>] 
                         [-force]
Repair-AksHciClusterCerts -name 
                          -fixKubeletCredentials
                         [-sshPrivateKeyFile <String>] 

Description

Troubleshoots and fixes errors related to expired certificates for Kubernetes built-in components.

Examples

PS C:\> Repair-AksHciClusterCerts -name mycluster -fixCloudCredentials

To fix the cluster certs, if there are communication issues between target clusters

PS C:\> Repair-AksHciClusterCerts -name mycluster -fixKubeletCredentials

Parameters

-name

The name of the Kubernetes cluster on which you want to reprovision the certificates.

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

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

-fixCloudCredentials

Use this flag if the workload cluster loses communication with the cloudagent.

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

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

-fixKubeletCredentials

Use this flag if the workload clusters lose communication between other workload clusters.

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

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

-sshPrivateKeyFile

The SSH key used to remotely access the host VMs for the cluster.

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

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

-force

Use this flag to force repair without checks. This flag is only valid for fixCloudCredentials

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

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

Next steps

AksHci PowerShell Reference