Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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>]
[-force]
Description
This cmdlet will be deprecated. Use Update-AksHciClusterCertificates.
Troubleshoots and fixes errors related to expired certificates for Kubernetes built-in components.
Examples
To fix cloud agent related certs, if the target cluster loses communication with the cloud agent
Repair-AksHciClusterCerts -name mycluster -fixCloudCredentials
To fix the cluster certs, if there are communication issues between target clusters
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 cloud agent.
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.
Type: System.Management.Automation.SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False