我有一个开发集群,我想向其中添加一个(只读)客户端证书。当我运行适当的 powershell 命令时:
PS> Add-AzServiceFabricClientCertificate `
-ResourceGroupName $ClusterResourceGroupName `
-Name $ClusterName `
-Thumbprint $ClientCertThumbprint
我收到以下错误消息:
Add-AzServiceFabricClientCertificate : Code: SingleNodeClusterUpdateNotAllowed, Message: Single node cluster update
not allowed. Updates are allowed for clusters having node count equal or greater than 3.
这是否意味着我需要重建整个集群,或者是否有办法向集群添加新的客户端指纹?
请注意,我也尝试过使用 azure 门户,但出现以下错误,我猜其原因与上述相同:
Failed to submit updates for certificate
Failed to submit updates to 'read-only client certificate' for 'xxxxxx'.
最佳答案
由于您将集群创建为单节点集群,因此您将无法更新证书。您需要重建集群并选择不使用单节点集群。相反,您会选择一个也建议用于开发的 3 节点集群。
关于azure - 将客户端证书添加到单节点 Service Fabric 集群,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56833516/