繁体   English   中英

Azure Kubernetes服务创建额外的资源组

[英]Azure Kubernetes Service Creates Extra Resource Groups

我创建了一个Azure Kubernetes Service(AKS)实例,并且发现,除了我在其中创建AKS实例的资源组之外,还为我创建了两个其他资源组。 我的资源组及其内容如下所示:

  • MyResourceGroup-Production
    • MyAKSInstance -Azure Kubernetes服务(AKS)
  • DefaultResourceGroup-WEU
    • ContainerInsights(MyAKSInstance) -解决方案
    • MyAKSInstance日志分析
  • MC_MyResourceGroup-Production_MyAKSInstance_westeurope
    • agentpool-availabilitySet-36219400可用性集
    • aks-agentpool-36219400-0虚拟机
    • aks-agentpool-36219400-0_OsDisk_1_09469b24b1ff4526bcfd5d00840cfbbc磁盘
    • aks-agentpool-36219400-nic-0网络接口
    • aks-agentpool-36219400-nsg网络安全组
    • aks-agentpool-36219400-routetable路由表
    • aks-vnet-36219400虚拟网络

我对这两个独立的资源组有一些疑问:

  1. 我可以在创建时首先重命名资源组或控制它们如何从我的ARM模板中命名吗?
  2. 我可以将DefaultResourceGroup-WEU的内容移动到MyResourceGroup-Production吗?
  3. 我可以安全地编辑他们的设置吗?
  4. 如果启用Log Analytics,则似乎已创建DefaultResourceGroup-WEU 我可以使用该实例来接受其他实例的日志吗?

UPDATE

我设法预先创建了一个日志分析资源,并将其用于Kubernetes。 但是,我在进入资源组时遇到了第三个资源:

      {
        "type": "Microsoft.Resources/deployments",
        "name": "SolutionDeployment",
        "apiVersion": "2017-05-10",
        "resourceGroup": "[split(parameters('omsWorkspaceId'),'/')[4]]",
        "subscriptionId": "[split(parameters('omsWorkspaceId'),'/')[2]]",
        "properties": {
            "mode": "Incremental",
            "template": {
                "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
                "contentVersion": "1.0.0.0",
                "parameters": {},
                "variables": {},
                "resources": [
                    {
                        "apiVersion": "2015-11-01-preview",
                        "type": "Microsoft.OperationsManagement/solutions",
                        "location": "[parameters('workspaceRegion')]",
                        "name": "[concat('ContainerInsights', '(', split(parameters('omsWorkspaceId'),'/')[8], ')')]",
                        "properties": {
                            "workspaceResourceId": "[parameters('omsWorkspaceId')]"
                        },
                        "plan": {
                            "name": "[concat('ContainerInsights', '(', split(parameters('omsWorkspaceId'),'/')[8], ')')]",
                            "product": "[concat('OMSGallery/', 'ContainerInsights')]",
                            "promotionCode": "",
                            "publisher": "Microsoft"
                        }
                    }
                ]
            }
        },
        "dependsOn": []
    }
  1. 不,你不能。
  2. 是的,但我建议不要这样做。 我建议从AKS中删除运行状况指标,删除该资源组,在与AKS相同的资源组中(或需要OMS的任何地方)创建OMS,然后使用该OMS。 它只会在oms所在的同一资源组中为您创建容器解决方案。
  3. 在某种程度上,如果您破坏了任何内容,AKS将无法修复它
  4. 是的,您可以,但是您最好像我在第2点中提到的那样对其进行重做。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM