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

AKS-HCI ARM template #14214

Open
wants to merge 23 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 33 additions & 0 deletions quickstarts/microsoft.aksarc/aks-hci/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
---
description: This template creates an AKS ARC provision cluster.
page_type: sample
products:
- azure
- azure-resource-manager
urlFragment: AKS-VMWare
languages:
- json
- bicep
---
# Create an AKS ARC Provision cluster using a template

![Azure Public Test Date](https://azurequickstartsservice.blob.core.windows.net/badges/quickstarts/microsoft.aksarc/aks-hci/PublicLastTestDate.svg)
![Azure Public Test Result](https://azurequickstartsservice.blob.core.windows.net/badges/quickstarts/microsoft.aksarc/aks-hci/PublicDeployment.svg)

![Azure US Gov Last Test Date](https://azurequickstartsservice.blob.core.windows.net/badges/quickstarts/microsoft.aksarc/aks-hci/FairfaxLastTestDate.svg)
![Azure US Gov Last Test Result](https://azurequickstartsservice.blob.core.windows.net/badges/quickstarts/microsoft.aksarc/aks-hci/FairfaxDeployment.svg)

![Best Practice Check](https://azurequickstartsservice.blob.core.windows.net/badges/quickstarts/microsoft.aksarc/aks-hci/BestPracticeResult.svg)
![Cred Scan Check](https://azurequickstartsservice.blob.core.windows.net/badges/quickstarts/microsoft.aksarc/aks-hci/CredScanResult.svg)

![Bicep Version](https://azurequickstartsservice.blob.core.windows.net/badges/quickstarts/microsoft.aksarc/aks-hci/BicepVersion.svg)

[![Deploy To Azure](https://raw.githubusercontent.com/Azure/azure-quickstart-templates/master/1-CONTRIBUTION-GUIDE/images/deploytoazure.svg?sanitize=true)](https://portal.azure.com/#create/Microsoft.Template/uri/https%3A%2F%2Fraw.githubusercontent.com%2FAzure%2Fazure-quickstart-templates%2Fmaster%2Fquickstarts%2Fmicrosoft.aksarc%2Faks-hci%2Fazuredeploy.json)
[![Deploy To Azure US Gov](https://raw.githubusercontent.com/Azure/azure-quickstart-templates/master/1-CONTRIBUTION-GUIDE/images/deploytoazuregov.svg?sanitize=true)](https://portal.azure.us/#create/Microsoft.Template/uri/https%3A%2F%2Fraw.githubusercontent.com%2FAzure%2Fazure-quickstart-templates%2Fmaster%2Fquickstarts%2Fmicrosoft.aksarc%2Faks-hci%2Fazuredeploy.json)
[![Visualize](https://raw.githubusercontent.com/Azure/azure-quickstart-templates/master/1-CONTRIBUTION-GUIDE/images/visualizebutton.svg?sanitize=true)](http://armviz.io/#/?load=https%3A%2F%2Fraw.githubusercontent.com%2FAzure%2Fazure-quickstart-templates%2Fmaster%2Fquickstarts%2Fmicrosoft.aksarc%2Faks-hci%2Fazuredeploy.json)

This template allows you to deploy a new AKS ARC cluster.

For more information about Azure Analysis Services, see [What is Azure Arc enabled Kuberneties](https://learn.microsoft.com/en-us/azure/azure-arc/kubernetes/overview).

`Tags: Microsoft.aksarc/aks-hci`
158 changes: 158 additions & 0 deletions quickstarts/microsoft.aksarc/aks-hci/azuredeploy.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,158 @@
{
"$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"location": {
"type": "string"
},
"aksClusterName": {
"type": "string"
},
"aksAdminGroupObjectId": {
"type": "string",
"defaultValue": ""
},
"aksControlPlaneIP": {
"type": "string"
},
"aksControlPlaneNodeCount": {
"type": "int",
"defaultValue": 1,
"minValue": 1,
"maxValue": 5
},
"aksControlPlaneNodeSize": {
"type": "string",
"defaultValue": "Standard_A4_v2"
},
"aksPodCidr": {
"type": "string",
"defaultValue": "10.244.0.0/16"
},
"aksKubernetesVersion": {
"type": "string",
"defaultValue": "v1.26.6"
},
"aksNodePoolName": {
"type": "string"
},
"aksNodePoolNodeCount": {
"type": "int",
"defaultValue": 1
},
"aksNodePoolNodeSize": {
"type": "string",
"defaultValue": "Standard_A4_v2"
},
"aksNodePoolOSType": {
"type": "string",
"defaultValue": "Linux",
"allowedValues": ["Linux", "Windows"]
},
"sshPublicKey": {
"type": "string"
},
"hciLogicalNetworkName": {
"type": "string"
},
"hciCustomLocationName": {
"type": "string"
}
},
"variables": {
"customLocationId": "[resourceId('Microsoft.ExtendedLocation/customLocations', parameters('hciCustomLocationName'))]"
},
"resources": [
{
"type": "Microsoft.ManagedIdentity/userAssignedIdentities",
"apiVersion": "2018-11-30",
"name": "aksManagedIdentity",
"location": "[parameters('location')]",
"properties": {}
},
{
"type": "Microsoft.Kubernetes/connectedClusters",
"apiVersion": "2024-01-01",
"name": "[parameters('aksClusterName')]",
"location": "[parameters('location')]",
"identity": {
"type": "SystemAssigned"
},
"kind": "ProvisionedCluster",
"properties": {
"agentPublicKeyCertificate": "",
"aadProfile": {
"enableAzureRBAC": false,
"adminGroupObjectIDs": ["[parameters('aksAdminGroupObjectId')]"]
},
"securityProfile": {
"workloadIdentity": {
"enabled": true
}
}
}
},
{
"type": "Microsoft.HybridContainerService/provisionedClusterInstances",
"apiVersion": "2024-01-01",
"scope": "[format('Microsoft.Kubernetes/connectedClusters/{0}', parameters('aksClusterName'))]",
"name": "default",
"extendedLocation": {
"type": "CustomLocation",
"name": "[variables('customLocationId')]"
},
"properties": {
"linuxProfile": {
"ssh": {
"publicKeys": [
{
"keyData": "[parameters('sshPublicKey')]"
}
]
}
},
"controlPlane": {
"count": "[parameters('aksControlPlaneNodeCount')]",
"controlPlaneEndpoint": {
"hostIP": "[parameters('aksControlPlaneIP')]"
},
"vmSize": "[parameters('aksControlPlaneNodeSize')]"
},
"kubernetesVersion": "[parameters('aksKubernetesVersion')]",
"networkProfile": {
"loadBalancerProfile": {
"count": 0
},
"networkPolicy": "calico",
"podCidr": "[parameters('aksPodCidr')]"
},
"agentPoolProfiles": [
{
"name": "[parameters('aksNodePoolName')]",
"count": "[parameters('aksNodePoolNodeCount')]",
"vmSize": "[parameters('aksNodePoolNodeSize')]",
"osType": "[parameters('aksNodePoolOSType')]"
}
],
"cloudProviderProfile": {
"infraNetworkProfile": {
"vnetSubnetIds": [
"[resourceId('Microsoft.AzureStackHCI/logicalNetworks', parameters('hciLogicalNetworkName'))]"
]
}
},
"storageProfile": {
"nfsCsiDriver": {
"enabled": false
},
"smbCsiDriver": {
"enabled": false
}
}
},
"dependsOn": [
"[resourceId('Microsoft.Kubernetes/connectedClusters', parameters('aksClusterName'))]"
]
}
]
}
51 changes: 51 additions & 0 deletions quickstarts/microsoft.aksarc/aks-hci/azuredeploy.parameters.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
{
"$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentParameters.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"location": {
"value": "eastus"
},
"aksClusterName": {
"value": "GEN-UNIQUE"
},
"aksAdminGroupObjectId": {
"value": "00000000-0000-0000-0000-000000000000"
},
"aksControlPlaneIP": {
"value": "x.x.x.x"
},
"aksControlPlaneNodeCount": {
"value": 1
},
"aksControlPlaneNodeSize": {
"value": "Standard_A4_v2"
},
"aksPodCidr": {
"value": "10.244.0.0/16"
},
"aksKubernetesVersion": {
"value": "v1.26.6"
},
"aksNodePoolName": {
"value": "GEN-UNIQUE"
},
"aksNodePoolNodeCount": {
"value": 1
},
"aksNodePoolNodeSize": {
"value": "Standard_A4_v2"
},
"aksNodePoolOSType": {
"value": "Linux"
},
"sshPublicKey": {
"value": "ssh-rsa AAAAB3...=="
},
"hciLogicalNetworkName": {
"value": "GEN-UNIQUE"
},
"hciCustomLocationName": {
"value": "GEN_UNIQUE"
}
}
}
10 changes: 10 additions & 0 deletions quickstarts/microsoft.aksarc/aks-hci/metadata.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"$schema": "https://aka.ms/azure-quickstart-templates-metadata-schema#",
"type": "QuickStart",
"itemDisplayName": "Create an AKS ARC cluster",
"description": "This template creates an AKS ARC cluster with an assiciated control plane IP and Vnet",
"summary": "Create an AKS ARC cluster instance using a template on HCI",
"githubUsername": "ReddyVanshika",
"docOwner": "ReddyVanshika",
"dateUpdated": "2024-11-05"
}
Loading