代码之家  ›  专栏  ›  技术社区  ›  Muhammad Rehan Saeed

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

  •  0
  • Muhammad Rehan Saeed  · 技术社区  · 7 年前

    • MyResourceGroup-Production
      • MyAKSInstance -Azure Kubernetes服务(AKS)
    • DefaultResourceGroup-WEU
      • ContainerInsights(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. 默认资源组WEU 进入之内 MyResourceGroup生产 ?
    3. 我可以安全地编辑他们的设置吗?
    4. 这个 默认资源组WEU

    更新

    我设法预先创建了一个日志分析资源,并将其用于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 回复  |  直到 7 年前
        1
  •  2
  •   4c74356b41    7 年前
    1. 是的,但我反对。我建议从AKS中删除运行状况指标,删除该资源组,在与AKS相同的资源组中创建OMS(或者在任何需要OMS的地方),然后使用该OMS。它只会在oms所在的同一资源组中为您创建容器解决方案。
    2. 在某种程度上,如果你打破任何AKS不会修复它
    3. 是的,你可以,但你最好像我在第二点提到的那样重新做。