Preparing the Subnet for the NFS Server and Jump Host
In this section, you will prepare subnets for the NFS server and for the jump host. All of the created resources should be placed in the same vnet to prevent performance issues caused by network latency; such resources include resource group, AKS cluster, jumphost, Azure NetApp files, and so on.
Portal
- Open the virtual network used for the installation AKS. In our example, this is called
demo-vnetin resource group srg-demo.
- On the Virtual network page, under Settings, select Subnets.
- Click + Subnet.
- In Name, enter nfs-subnet.
- In Address range, enter an address range based on the IP assigned by Azure. In our example, aks-subnet uses the address range
10.1.1.0/24, so we use10.1.2.0/24.
Microsoft.NetApp/volumes.- Click OK to create the subnet.
- Repeat steps 3 and 4 to create a subnet for the jump host.
- For name, use jumphost-subnet.
- For address range we will use, for example, 10.1.3.0/24.
Required permissions:create subnets inside the AKS virtual network
- Create the NFS subnet by running the command:
# az network vnet subnet create \
--address-prefixes <ADDRESS PREFIX> \
--name nfs-subnet \
-g <RESOURCE GROUP> \
--vnet-name <VIRTUAL NETWORK>
where:
<VIRTUAL NETWORK>is the virtual network name where you want to create the subnet. We will use the virtual network created earlier.<RESOURCE GROUP>is the resource group where the virtual network is located.
--delegations Microsoft.NetApp/volumes to the above command.# az network vnet subnet create --address-prefixes 10.1.2.0/24 --name nfs-subnet -g srg-demo --vnet-name demo-vnet- Create the jumphost subnet by running a similar command to the one in Step 1, but with a different name and address prefix.
# az network vnet subnet create --address-prefixes 10.1.3.0/24 --name jumphost-subnet -g srg-demo --vnet-name demo-vnetCLI
Required permissions:create subnets inside the AKS virtual network
- Create the NFS subnet by running the command:
# az network vnet subnet create \
--address-prefixes <ADDRESS PREFIX> \
--name nfs-subnet \
-g <RESOURCE GROUP> \
--vnet-name <VIRTUAL NETWORK>
where:
<VIRTUAL NETWORK>is the virtual network name where you want to create the subnet. We will use the virtual network created earlier.<RESOURCE GROUP>is the resource group where the virtual network is located.
--delegations Microsoft.NetApp/volumes to the above command.# az network vnet subnet create --address-prefixes 10.1.2.0/24 --name nfs-subnet -g srg-demo --vnet-name demo-vnet- Create the jumphost subnet by running a similar command to the one in Step 1, but with a different name and address prefix.
# az network vnet subnet create --address-prefixes 10.1.3.0/24 --name jumphost-subnet -g srg-demo --vnet-name demo-vnet
Next Step: Preparing the Jump Host Virtual Machine