This guide details the process of deploying an Azure Kubernetes Service (AKS) cluster through Snow Commander. It includes prerequisites, workflow installation, configuration, and service request steps. Follow these instructions to prepare, configure, and deploy AKS for managed environments efficiently.
Commander Build |
Files for this Scenario |
| 7.0.2 | Download from GitHub |
Prerequisites
-
Commander release 7.0.2 or greater
Install plug-in workflow step packages
This scenario uses the following plug-in workflow steps:
-
Kubernetes plug-in workflow step package (
wfplugins-k8s.jar), which provides a plug-in workflow step to add the deployed Kubernetes cluster to Commander‚¢s inventory as a cloud account (managed system) -
Azure plug-in workflow step package (
wfplugins-azure.jar), which provides a plug-in workflow step to retrieve the kubeconfig of an AKS Kubernetes cluster created through an Azure template in a Commander service
Go to GitHub / Plug-in Workflow-Steps and clone or download the repository. Then in your local version of the repo, browse to the k8s and azure directories, which contain the Kubernetes and Azure plug-in workflow step packages.
To learn how to download and install workflow plug-in steps, see Adding plug-in workflow steps.
Download scenario files
Go to GitHub / Scenarios and clone or download the Deploy-Kubernetes-Cluster-Azure-AKS repository. Then install the following workflows:
Download the following files from this project:
-
aks.template: an ARM template that you will add to the service catalog -
Add AKS Cluster.yaml: a Commander completion workflow for Cloud Template components that you will import
Import the completion workflow
Import a Commander completion workflow to complete the provisioning and configuration of the cluster.
Go to Git Hub / Scenarios and clone or download the repository.
-
In Commander, go to Configuration > Service Request Configuration > Completion Workflows and click Import.
-
Go to the Scenarios repo that you cloned or downloaded, then from the
Deploy-Kubernetes-Cluster-Azure-AKSdirectory, select theAdd AKS Cluster.yamlfile, and click Open.Commander automatically validates the workflow and displays the validation results in the Messages area of the Import Workflow dialog.
-
Enter a comment about the workflow in the Description of Changes field, and click Import.
To learn more, see Importing and Exporting Workflow Definitions.
Create the required Azure objects
A resource group is required to create AKS cluster resources. The top-level resource group can be used, but here we're creating a dedicated resource group.
The resource group can be created from either the Azure CLI or the portal.
From CLI
Choose a name and location for the resource group.
$ az group create --name AKS-Resource-Group --location eastus
{
"id": "/subscriptions/5823acf6-3825-4ad9-bc87-719962439177/resourceGroups/AKS-Resource-Group",
"location": "eastus",
"managedBy": null,
"name": "AKS-Resource-Group",
"properties": {
"provisioningState": "Succeeded"
},
"tags": null
}
From Portal
-
In the Azure portal, select Resource Groups and click + Add. Enter a name and select a subscription and location.
-
Click Create.
Create a service principal
A service principal is required to deploy an AKS Kubernetes cluster. You can create the service principal from either the Azure CLI or the portal.
From CLI
Choose a name for the service principal, such as "AKS-SP".
$ az ad sp create-for-rbac --name AKS-SP
{
"appId": "da5ba8fc-6fce-4fb1-8cbd-99c6edce1f7a",
"displayName": "AKS-SP",
"name": "http://AKS-SP",
"password": "37c2ab86-368a-4bc7-adb9-50642a65efbc",
"tenant": "65d36aa6-46ad-4368-9c57-dfc18a3f69f7"
}
From Portal
-
In the Azure portal, select Azure Active Directory > App registrations > New application registration.
-
Enter the service principal name and a sign-on URL. You may enter any valid URL.
- Click Create.
- Click Settings > Keys.
- Enter a Description and select a Duration.
- Click Save.
Important: Copy and save the displayed key value! You will not be able to access it later.
-
Grant permission to the service principal to manage the resource group:
-
Select the previously created resource group. Click Access Control (IAM).
-
Click + Add to add the service principal.
-
Select Contributor for the Role.
-
Under Select, enter the service principal name.
-
-
Click Save.
Create a Commander deployment destination
For general information on creating a deployment destination for Azure, see Configuring Automated Deployment for Approved Service Requests.
Note:
-
On the Target page, select the resource group created earlier, for example AKS-Resource-Group.
-
On the Subnets page, select any subnet from Available Subnets and move it to Configured Subnets. If no subnets are available, you must create one in Azure. This subnet is not used by AKS, but selecting one is necessary to set up a deployment destination.
Create a service catalog entry for users to request
- In Commander, go to Configuration > Service Request Configuration > Service Catalog.
- Click Add Service.
- Enter a service name and description, then click Next.
- On the Component Blueprints page, click Add > ARM Template.
- Browse to the downloaded aks.template file and click OK.
- On the ArmTemplate component page, change the component name to something more descriptive, such as "AKS ARM Template".
- Assign the downloaded completion workflow to the component.
- Now, set up the request form for this component.
- On the Form tab, under the Toolbox, click Input Text Field.
- For the Display Label, enter "Kubernetes Cluster Name". Click OK.
- Now we configure parameters required by the ARM template. On the Parameters tab, enter the following parameter values:
-
- dnsPrefix: #{form.inputField['Kubernetes Cluster Name']}
- resourceName: #{form.inputField['Kubernetes Cluster Name']}
- servicePrincipalClientId: ID of service principal created above
- servicePrincipalClientSecret: Password/Key of service principal created above
- sshRSAPublicKey: Contents of ~/.ssh/id_rsa.pub
- Modify the other parameters as needed.
- On the Summary page, click Finish.
- Click Finish again to create the service.
Submit a service request
The service is now configured and ready to test.
-
In Commander or the Service Portal, go to the Service Catalog and request the service you just created.
- On the Component form, enter a cluster name and click Submit.
The deployed cluster will automatically be added to Commander as a cloud account (managed system).
Related Articles
Visualize your Kubernetes cluster using Kubernetes Operational View 23Number of Views Inventory NDI file from a Kubernetes node may be rejected due to being out of date when node Computer has multiple Hardwar… 14Number of Views Inventory NDI file from Kubernetes node is discarded if it is older than associated cluster inventory 15Number of Views Cluster doesn’t scale up because of a Kubernetes version parsing error 4Number of Views Kubernetes image details gathered by the KRM agent not showing in All Containers view if the node.Status.Images details do… 9Number of Views
Hi, I am Reva - Ask me anything.
No new updates
Thanks for the feedback!
Your feedback has been saved.Rate this response:
Add Additional feedback ( Optional )
Are you sure you want to cancel
the case creation?
Are you sure you want to cancel the case creation?
Are you sure you want to close this case
| Products | Region | Phone Numbers |
|---|---|---|
| FlexNet Operations FlexNet Embedded FlexNet Publisher FlexNet Connect FlexNet Code Insight InstallAnywhere InstallShield |
North America * |
+1 630-332-2513 (toll) +1 877-279-2853 (toll-free in North America) |
| Europe * |
+44 1925 944367 (toll) +44 800 047 8642 (toll-free in Europe) |
|
| Japan * | +81 3-4540-5335 (select option 2) | |
| Australia * |
+61 3 9895 2177 +61 1800 560 603 (toll-free in Australia) |
|
|
Usage Intelligence (formerly
Revulytics) Compliance Intelligence |
Please use the Case Portal to submit your support ticket or reach out to your Revenera contact. | |
Revenera Assistant
Case id: 00001065
Activity: Status change: 2 hours ago