gpt4 book ai didi

azure - Microsoft 学习路径模块 (Kubernetes) 中的 Azure 问题

转载 作者:行者123 更新时间:2023-12-03 03:38:43 31 4
gpt4 key购买 nike

我正在做微软类(class)的这个模块:

https://learn.microsoft.com/en-us/learn/modules/microservices-aspnet-core/

我创建了一个 Azure 订阅并尝试运行第 2 单元中给出的脚本。控制台中发生了一些事情,但在某些时候它会显示如下内容:

Getting credentials for AKS...
(ResourceNotFound) The Resource 'Microsoft.ContainerService/managedClusters/eshop-learn-aks' under resource group 'eshop-learn-rg' was not found. For more details please go to https://aka.ms/ARMResourceNotFoundFix
Code: ResourceNotFound
Message: The Resource 'Microsoft.ContainerService/managedClusters/eshop-learn-aks' under resource group 'eshop-learn-rg' was not found. For more details please go to https://aka.ms/ARMResourceNotFoundFix

Installing NGINX ingress controller
error: You must be logged in to the server (the server has asked for the client to provide credentials)
error: You must be logged in to the server (the server has asked for the client to provide credentials)
error: You must be logged in to the server (the server has asked for the client to provide credentials)

Getting load balancer public IP

> kubectl get svc -n ingress-nginx -o json | jq -r -e '.items[0].status.loadBalancer.ingress[0].ip // empty'

error: You must be logged in to the server (the server has asked for the client to provide credentials)
Waiting for load balancer IP...

我做错了什么吗?严格遵循说明。

编辑:我认为问题出在 VM,而不是 AKS。

> az aks create -n eshop-learn-aks -g eshop-learn-rg --node-count 1 --node-vm-size Standard_D2_v5 --vm-set-type VirtualMachineScaleSets -l centralus --enable-managed-identity --generate-ssh-keys -o json

ERROR: (BadRequest) The VM size of AgentPoolProfile:nodepool1 is not allowed in your subscription in location 'centralus'.

最佳答案

您需要登录:

az login
az account set --subscription <YOUR SUB ID>
az aks get-credentials --resource-group <AKS RG> --name <AKS NAME>

关于azure - Microsoft 学习路径模块 (Kubernetes) 中的 Azure 问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/72348704/

31 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com