Azure / Azure/aksArc

new-akshcicluster nodeMaxPodCount check

Open
#181 0 comments 0 reactions 0 assignees View on GitHub
Enhancement
Dominant language
PowerShell
Stars
118
Forks
63
PR merge metrics
No merged PRs in 30d

Description

**Title**: new-akshcicluster nodeMaxPodCount check

**Description**:
In the documentation it is written that nodeMaxPodCount check needs to be greater then 50. Trying with 40 throws exception in the middle of cluster creation. It will be nice to check in powershell module before starting creation of the cluster.

´´´
C:\dev\projects> New-AksHciCluster -Name target1 -kubernetesVersion v1.21.7 -nodePoolName apppool -nodeCount 2 -nodeMaxPodCount 30 -nodeVmSize Standard_A2_v2 -controlPlaneNodeCount 1
C:\Program Files\AksHci\kvactl.exe cluster nodepool create --clustername target1 --nodepoolconfig "V:\AKS-HCI\WorkingDir\1.0.8.10223\yaml\target1-apppool.yaml" --kubeconfig "V:\AKS-HCI\WorkingDir\1.0.8.10223\kubeconfig-mgmt"
System.Collections.Hashtable.generic_non_zero 1 [Error: Max pod count must be greater than 50: Invalid MaxPodCount]
At C:\Program Files\WindowsPowerShell\Modules\Kva\1.0.22\Common.psm1:2164 char:9
throw $errMessage
~~~~~~~~~~~~~~~~~
+ CategoryInfo : OperationStopped: (C:\Program File...id MaxPodCount]:String) [], RuntimeException
+ FullyQualifiedErrorId : C:\Program Files\AksHci\kvactl.exe cluster nodepool create --clustername target1 --nodepoolconfig "V:\AKS-HCI\WorkingDir\1.0.8.10223\yaml\target1-apppool.yaml" --kubeconfig "V:\AKS-HCI\WorkingDir\1.0.8.10223\kubeconfig-m
gmt" System.Collections.Hashtable.generic_non_zero 1 [Error: Max pod count must be greater than 50: Invalid MaxPodCount]
´´´

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.