Here are some examples of how to create and configure AKS storage using the Azure Portal and Azure PowerShell:
- Create a Storage Account using Azure Portal:
- Sign in to the Azure portal (https://portal.azure.com/).
- Click on “Create a resource” button and search for “Storage Account”.
- Fill in the required information such as subscription, resource group, storage account name, location, and performance tier.
- Once you have filled in the required information, click on the “Create” button to create the storage account.
- Create a Storage Account using Azure PowerShell:
- Open Azure PowerShell and connect to your Azure account using the Connect-AzAccount cmdlet.
- Use the New-AzStorageAccount cmdlet to create a storage account. For example, the following command creates a storage account named “myaksstorage” in the “eastus” region:
New-AzStorageAccount -ResourceGroupName "myResourceGroup" -Name "myaksstorage" -Location "eastus" -SkuName "Standard_LRS"
- Create a Persistent Volume using Azure Portal:
- In the Azure portal, navigate to your AKS cluster and click on “Persistent Volumes” under the “Storage” section.
- Click on the “+ Add” button to add a new Persistent Volume.
- Fill in the required information such as Name, Access Modes, Storage Class, and Storage Account.
- Once you have filled in the required information, click on the “Create” button to create the Persistent Volume.
- Create a Persistent Volume using Azure PowerShell:
- Open Azure PowerShell and connect to your Azure account using the Connect-AzAccount cmdlet.
- Use the New-AzAksPersistentVolume cmdlet to create a Persistent Volume. For example, the following command creates a Persistent Volume named “mypv” with 5GB of storage:
New-AzAksPersistentVolume -ResourceGroupName "myResourceGroup" -ClusterName "myAKSCluster" -Name "mypv" -StorageSize 5Gi
These are just a few examples of how to create and configure AKS storage using Azure Portal and Azure PowerShell. There are many other storage options available with AKS, such as Azure Files, Azure Disks, and more, which can be configured using similar methods.
