Azure AKS客户端密钥已过期 - 如何更改?

问题描述 投票:0回答:2

我有一个在Azure上运行的Kubernetes集群(AKS / ACS)。我使用Portal创建了集群。有一个aadClient是自动创建的,客户端机密现已过期。

有人可以告诉我如何设置我已创建的新客户机密码?

目前,AKS无法更新Load Balancer值或挂载持久存储。

谢谢!

azure kubernetes amazon-iam acs
2个回答
1
投票

可以通过以下命令更新AKS客户端凭据:

az aks update-credentials \
    --resource-group myResourceGroup \
    --name myAKSCluster \
    --reset-service-principal \
    --service-principal $SP_ID \
    --client-secret $SP_SECRET

官方文件:https://docs.microsoft.com/en-us/azure/aks/update-credentials#update-aks-cluster-with-new-credentials


1
投票

至少在官方支持下,没有办法做到这一点。

https://github.com/Azure/AKS/issues/371

编辑:这个答案已经过时,现在可以了

© www.soinside.com 2019 - 2024. All rights reserved.