Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request : addonProfiles and networkProfile for Azure Kubernetes Service (AKS) #1434

Closed
rhollins opened this issue Jun 24, 2018 · 13 comments

Comments

@rhollins
Copy link

AKS now allows to place cluster in custom vnet and also to integrate monitoring with log analytics workspace, this is now available in ARM template but seems to be missing from terraform resource: azurerm_kubernetes_cluster.

Just for reference here is working example of ARM Template with both addonProfiles and networkProfile:

        {
            "name": "[variables('aksClusterName')]",
            "type": "Microsoft.ContainerService/managedClusters",
            "apiVersion": "2018-03-31",
            "location": "[resourceGroup().location]",
            "tags": {
                "Owner": "[variables('tagName')]"
            },
            "dependsOn": [
                "[concat('Microsoft.OperationalInsights/workspaces/', variables('laName'))]",
                "[concat('Microsoft.Network/virtualNetworks/', variables('vnetName'))]"
            ],
            "properties": {
                "mode": "Incremental",
                "dnsPrefix": "[variables('aksDnsPrefix')]",
                "kubernetesVersion": "[variables('aksVersion')]",
                "agentPoolProfiles": [
                    {
                        "name": "[variables('aksPoolName')]",
                        "osDiskSizeGB": "[variables('aksOsDiskSizeGB')]",
                        "count": "[variables('aksVmCount')]",
                        "vmSize": "[variables('aksVmSize')]",
                        "osType": "Linux",
                        "vnetSubnetID": "[variables('subnetId')]",
                        "maxPods": 30,
                        "storageProfile": "ManagedDisks"
                    }
                ],
                "linuxProfile": {
                    "adminUsername": "[parameters('aksUserName')]",
                    "ssh": {
                        "publicKeys": [
                            {
                                "keyData": "[variables('aksKeyData')]"
                            }
                        ]
                    }
                },
                "servicePrincipalProfile": {
                    "clientId": "[parameters('aksServicePrincipalClientId')]",
                    "secret": "[parameters('aksServicePrincipalSecret')]"
                },
                "addonProfiles": {
                    "omsagent": {
                        "enabled": true,
                        "config": {
                            "logAnalyticsWorkspaceResourceID": "[resourceId('Microsoft.OperationalInsights/workspaces', variables('laName'))]"
                        }
                    }
                },
                "networkProfile": {
                    "networkPlugin": "[variables('aksNetworkPlugin')]",
                    "serviceCidr": "[variables('aksServiceCidr')]",
                    "dnsServiceIP": "[variables('aksDnsServiceIP')]",
                    "dockerBridgeCidr": "[variables('aksDockerBridgeCidr')]"
                }
            }
        }
  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment
@rhollins rhollins changed the title addonProfiles and networkProfile for Azure Kubernetes Service (AKS) Feature Request : addonProfiles and networkProfile for Azure Kubernetes Service (AKS) Jun 24, 2018
@tombuildsstuff
Copy link
Contributor

Dependent on #1389

@lfshr
Copy link
Contributor

lfshr commented Jul 2, 2018

Started working on these features.
https://github.com/lfshr/terraform-provider-azurerm/tree/containerservices-advancednetworking

@tombuildsstuff I was planning on keeping the work part of #1389, If we're separating them out should we close #1389 now that it's merged?

@tombuildsstuff
Copy link
Contributor

@lfshr indeed, I've closed the other issue in favour of this one - thanks for the heads up :)

@lfshr
Copy link
Contributor

lfshr commented Jul 5, 2018

Started work on the addonProfiles
https://github.com/lfshr/terraform-provider-azurerm/tree/containerservices-addonprofile

@lfshr
Copy link
Contributor

lfshr commented Jul 5, 2018

#1502 opened

@flyinprogrammer
Copy link

agent_pool_profile is also missing maxPods

@sijusamueltech
Copy link

when is this 'advanced networking feature' expected to be released ?

@mbrancato
Copy link

@sijusamueltech advanced networking is available today, but the network profile is not. Due to a combination of issues, AKS will not create a functional cluster with advanced networking specified but without a network profile.

Don't do this today, but an example of how to pass the subnet ID is below.

  agent_pool_profile {
    name            = "default"
    vm_size         = "Standard_DS1_v2"
    os_type         = "Linux"
    os_disk_size_gb = 30
    vnet_subnet_id  = "${var.vnet_subnet_id}"
  }

@tombuildsstuff
Copy link
Contributor

tombuildsstuff commented Jul 25, 2018

Network Profiles have been fixed via #1479

Add-on profiles are being tracked in this PR:
#1502

@schweikert
Copy link

Does it mean that also in the future specifying something in "vnet_subnet_id" but without an explicit network profile configuration will get you non-functional clusters?

@sijusamueltech
Copy link

@mbrancato @tombuildsstuff Looking forward to create a fully functioning AKS with advanced networking option using terraform. Following are the most important features of our interest. Networking - Option to chose Virtual network, subnet and other configs(DNS Ip, K8 service address range, Docker bridge address ) - [this is mapped from the azure portal UI for creating kubernetes services ]. Currently using just the ARM template to automate the AKS cluster creation. May be going with the default network profile is also ok . Can you please point to right terraform version, when ever it is ready.. thx.

@mbrancato
Copy link

@schweikert This probably could use testing. I'm not certain if a default networkProfile will be sent.

@sijusamueltech All the network profile information should be in the next release of the azurerm provider as it is currently targeted for 1.12.0. The HashiCorp team has been really good about adding features and quick releases recently.

@ghost
Copy link

ghost commented Mar 30, 2020

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.

If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. If you feel I made an error 🤖 🙉 , please reach out to my human friends 👉 [email protected]. Thanks!

@ghost ghost locked and limited conversation to collaborators Mar 30, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

7 participants