Azure AKS Client Secret expired - How to change?

亡梦爱人 提交于 2019-12-13 06:29:35

问题


I have a Kubernetes Cluster running on Azure (AKS / ACS). I created the cluster using the Portal. There a aadClient was created automatically with a client secret that now expired.

Can somebody please tell me how to set the new client secret which I already created?

Right now AKS is not able to update Loadbalancer values or mount persistant storage.

Thank you!


回答1:


AKS client credentials can be updated via command:

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

Official documentation: https://docs.microsoft.com/en-us/azure/aks/update-credentials#update-aks-cluster-with-new-credentials




回答2:


There is no way of doing that yet, officially supported, at least.

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

EDIT: this answer is outdated, this is now possible



来源:https://stackoverflow.com/questions/53748832/azure-aks-client-secret-expired-how-to-change

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!