Update-AksHciClusterCertificates

概要

輪替工作負載叢集中所有用戶端的權杖和憑證。

語法

Update-AksHciClusterCertificates  -name
                                 [-fixCloudCredentials]
                                 [-force]
Update-AksHciClusterCertificates  -name
                                 [-fixKubeletCredentials]
                                 [-force]

描述

輪替工作負載叢集中所有用戶端的權杖和憑證。

範例

Update-AksHciClusterCertificates -name mycluster -fixCloudCredentials

修正叢集憑證 (如果目標叢集之間有通訊問題)

Update-AksHciClusterCertificates -name mycluster -fixKubeletCredentials

參數

-name

您要在其中重新佈建憑證的 Kubernetes 叢集名稱。

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

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

-fixCloudCredentials

針對與 MOC 通訊的叢集 Pod 重新佈建權杖。 如果工作負載叢集與雲端代理程式失去通訊,請使用此旗標。

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

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

-fixKubeletCredentials

重新佈建叢集控制平面節點的憑證。

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

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

-force

不論到期日為何,使用此旗標來強制權杖和憑證輪替。

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

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

後續步驟

AksHci PowerShell 參考