Prepare Linux using a multi-node cluster (preview)
This article describes how to prepare Linux using a multi-node cluster, and assumes you fulfilled the prerequisites.
Prepare Linux with AKS enabled by Azure Arc
Install and configure Open Service Mesh (OSM) using the following commands:
az k8s-extension create --resource-group "YOUR_RESOURCE_GROUP_NAME" --cluster-name "YOUR_CLUSTER_NAME" --cluster-type connectedClusters --extension-type Microsoft.openservicemesh --scope cluster --name osm
kubectl patch meshconfig osm-mesh-config -n "arc-osm-system" -p '{"spec":{"featureFlags":{"enableWASMStats": false }, "traffic":{"outboundPortExclusionList":[443,2379,2380], "inboundPortExclusionList":[443,2379,2380]}}}' --type=merge
Prepare Linux with AKS Edge Essentials
This section describes how to prepare Linux with AKS Edge Essentials if you run a multi-node cluster.
On each node in your cluster, set the number of HugePages to 512 using the following command:
Invoke-AksEdgeNodeCommand -NodeType "Linux" -Command 'echo 512 | sudo tee /sys/devices/system/node/node0/hugepages/hugepages-2048kB/nr_hugepages' Invoke-AksEdgeNodeCommand -NodeType "Linux" -Command 'echo "vm.nr_hugepages=512" | sudo tee /etc/sysctl.d/99-hugepages.conf'
On each node in your cluster, install the specific kernel using:
Invoke-AksEdgeNodeCommand -NodeType "Linux" -Command 'sudo apt install linux-modules-extra-`uname -r`'
Note
The minimum supported version is 5.1. At this time, there are known issues with 6.4 and 6.2.
On each node in your cluster, increase the maximum number of files using the following command:
Invoke-AksEdgeNodeCommand -NodeType "Linux" -Command 'echo -e "LimitNOFILE=1048576" | sudo tee -a /etc/systemd/system/containerd.service.d/override.conf'
Install and configure Open Service Mesh (OSM) using the following commands:
az k8s-extension create --resource-group "YOUR_RESOURCE_GROUP_NAME" --cluster-name "YOUR_CLUSTER_NAME" --cluster-type connectedClusters --extension-type Microsoft.openservicemesh --scope cluster --name osm kubectl patch meshconfig osm-mesh-config -n "arc-osm-system" -p '{"spec":{"featureFlags":{"enableWASMStats": false }, "traffic":{"outboundPortExclusionList":[443,2379,2380], "inboundPortExclusionList":[443,2379,2380]}}}' --type=merge
Create a file named config.json with the following contents:
{ "acstor.capacityProvisioner.tempDiskMountPoint": /var }
Note
The location/path of this file is referenced later, when installing the Edge Storage Accelerator Arc extension.
Prepare Linux with Ubuntu
This section describes how to prepare Linux with Ubuntu if you run a multi-node cluster.
Install and configure Open Service Mesh (OSM) using the following command:
az k8s-extension create --resource-group "YOUR_RESOURCE_GROUP_NAME" --cluster-name "YOUR_CLUSTER_NAME" --cluster-type connectedClusters --extension-type Microsoft.openservicemesh --scope cluster --name osm kubectl patch meshconfig osm-mesh-config -n "arc-osm-system" -p '{"spec":{"featureFlags":{"enableWASMStats": false }, "traffic":{"outboundPortExclusionList":[443,2379,2380], "inboundPortExclusionList":[443,2379,2380]}}}' --type=merge
Run the following command to determine if you set
fs.inotify.max_user_instances
to 1024:sysctl fs.inotify.max_user_instances
After you run this command, if it outputs less than 1024, run the following command to increase the maximum number of files and reload the sysctl settings:
echo 'fs.inotify.max_user_instances = 1024' | sudo tee -a /etc/sysctl.conf sudo sysctl -p
Install the specific kernel using:
sudo apt install linux-modules-extra-`uname -r`
Note
The minimum supported version is 5.1. At this time, there are known issues with 6.4 and 6.2.
On each node in your cluster, set the number of HugePages to 512 using the following command:
HUGEPAGES_NR=512 echo $HUGEPAGES_NR | sudo tee /sys/devices/system/node/node0/hugepages/hugepages-2048kB/nr_hugepages echo "vm.nr_hugepages=$HUGEPAGES_NR" | sudo tee /etc/sysctl.d/99-hugepages.conf
Next steps
Pripomienky
https://aka.ms/ContentUserFeedback.
Pripravujeme: V priebehu roka 2024 postupne zrušíme službu Problémy v službe GitHub ako mechanizmus pripomienok týkajúcich sa obsahu a nahradíme ju novým systémom pripomienok. Ďalšie informácie nájdete na stránke:Odoslať a zobraziť pripomienky pre