简体   繁体   English

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

[英]Azure Kubernetes Service Creates Extra Resource Groups

I have created an instance of Azure Kubernetes Service (AKS) and have discovered that apart from the resource group I created the AKS instance in, two other resource groups were created for me. 我创建了一个Azure Kubernetes Service(AKS)实例,并且发现,除了我在其中创建AKS实例的资源组之外,还为我创建了两个其他资源组。 Here is what my resource groups and their contents looks like: 我的资源组及其内容如下所示:

  • MyResourceGroup-Production
    • MyAKSInstance - Azure Kubernetes Service (AKS) MyAKSInstance -Azure Kubernetes服务(AKS)
  • DefaultResourceGroup-WEU
    • ContainerInsights(MyAKSInstance) - Solution ContainerInsights(MyAKSInstance) -解决方案
    • MyAKSInstance - Log Analytics MyAKSInstance日志分析
  • MC_MyResourceGroup-Production_MyAKSInstance_westeurope
    • agentpool-availabilitySet-36219400 - Availability set agentpool-availabilitySet-36219400可用性集
    • aks-agentpool-36219400-0 - Virtual machine aks-agentpool-36219400-0虚拟机
    • aks-agentpool-36219400-0_OsDisk_1_09469b24b1ff4526bcfd5d00840cfbbc - Disk aks-agentpool-36219400-0_OsDisk_1_09469b24b1ff4526bcfd5d00840cfbbc磁盘
    • aks-agentpool-36219400-nic-0 - Network interface aks-agentpool-36219400-nic-0网络接口
    • aks-agentpool-36219400-nsg - Network security group aks-agentpool-36219400-nsg网络安全组
    • aks-agentpool-36219400-routetable - Route table aks-agentpool-36219400-routetable路由表
    • aks-vnet-36219400 - Virtual network aks-vnet-36219400虚拟网络

I have a few questions about these two separate resource groups: 我对这两个独立的资源组有一些疑问:

  1. Can I rename the resource groups or control how they are named from my ARM template in the first place at the time of creation? 我可以在创建时首先重命名资源组或控制它们如何从我的ARM模板中命名吗?
  2. Can I move the contents of DefaultResourceGroup-WEU into MyResourceGroup-Production ? 我可以将DefaultResourceGroup-WEU的内容移动到MyResourceGroup-Production吗?
  3. Can I safely edit their settings? 我可以安全地编辑他们的设置吗?
  4. The DefaultResourceGroup-WEU seems to be created if you enable Log Analytics. 如果启用Log Analytics,则似乎已创建DefaultResourceGroup-WEU Can I use this instance for accepting logs from other instances? 我可以使用该实例来接受其他实例的日志吗?

UPDATE UPDATE

I managed to pre-create a log analytics resource and use that for Kubernetes. 我设法预先创建了一个日志分析资源,并将其用于Kubernetes。 However, there is a third resource that I'm having trouble moving into my resource group: 但是,我在进入资源组时遇到了第三个资源:

      {
        "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. No, you cant. 不,你不能。
  2. Yes, but I'd advice against it. 是的,但我建议不要这样做。 I'd advice remove the health metrics from AKS, delete that resource group, create OMS in the same resource group with AKS (or wherever you need your OMS to be) and then use that OMS. 我建议从AKS中删除运行状况指标,删除该资源组,在与AKS相同的资源组中(或需要OMS的任何地方)创建OMS,然后使用该OMS。 it will just create container solution for you in the same resource group where oms is in. 它只会在oms所在的同一资源组中为您创建容器解决方案。
  3. To extent, if you break anything AKS wont fix it 在某种程度上,如果您破坏了任何内容,AKS将无法修复它
  4. Yes you can, but you better rework it like I mention in point 2. 是的,您可以,但是您最好像我在第2点中提到的那样对其进行重做。

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

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