尝试在 GKE 博客文章上为我的 MongoDB做一个等效的,用于 Azure 容器服务,但在第一个障碍中失败了。我的博客文章基于使用每个云提供商的免费层/帐户中可用的配额,以帮助新用户在继续使用付费层之前评估选项。但是,在创建了一个 Azure 免费帐户后,我似乎无法创建一个保持在“核心限制”以下的 k8s 集群(在这种情况下,我假设这意味着保持在相当于“vCPUs”的免费阈值以下)。
当我运行以下内容时:
az acs create --orchestrator-type kubernetes --resource-group MongoResourceGroup --name MongoK8sCluster --generate-ssh-keys
结果是:
Deployment failed. { "code": "BadRequest", "message": "An error has occurred in subscription 0657d162-d822-48f5-bbe9-4bcaac4f40e4, zesourceGroup: MongoResourceGroup request: Provisioning of resource(s) for container service MongoK8sCluster in resource group MongoResourceGroup failed. Message: {\n \"code\": \"QuotaExceeded\",\n \"message\": \"Provisioning of resource(s) for container service MongoK8sCluster in resource group MongoResourceGroup failed. Message: Operation results in exceeding quota limits of Core. Maximum allowed: 4, Current in use: 0, Additional requested: 8.. Details: \"\n }. Details: <no value>."
我试图指定一种较小类型的虚拟机,但我似乎不太明白:
az acs create --orchestrator-type kubernetes --resource-group MongoResourceGroup --name MongoK8sCluster --agent-vm-size Standard_A0 --generate-ssh-keys
Deployment failed. { "code": "BadRequest", "message": "An error has occurred in subscription 0657d162-d822-48f5-bbe9-4bcaac4f40e4, resourceGroup: MongoResourceGroup request: Provisioning of resource(s) for container service MongoK8sCluster in resource group MongoResourceGroup failed. Message: {\n \"code\": \"QuotaExceeded\",\n \"message\": \"Provisioning of resource(s) for container service MongoK8sCluster in resource group MongoResourceGroup failed. Message: Operation results in exceeding quota limits of Core. Maximum allowed: 4, Current in use: 0, Additional requested: 5.. Details: \"\n }. Details: <no value>.
有什么建议可以让 k8s 示例项目核心数量减少到足以在免费帐户阈值内?