Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Gateway agentpool is configured with invalid node count 1, exceeding max node count 2 #4599

Closed
JoeyC-Dev opened this issue Oct 24, 2024 · 1 comment
Labels

Comments

@JoeyC-Dev
Copy link

JoeyC-Dev commented Oct 24, 2024

Describe the bug
1 node should be allowed when set the prefix with /31. But it says, "1 node is not allowed because it exceeds the max number 2".

To Reproduce
Steps to reproduce the behavior:

az extension add -n aks-preview

# Basic parameter
ranNum=$(echo $RANDOM)
rG=aks-staticegressgw-${ranNum}
aks=aks-staticegressgw-${ranNum}
location=southeastasia
k8sVer=1.31

az group create -n ${rG} -l ${location} -o none

# Create AKS
az aks create -n ${aks} -g ${rG} \
    --no-ssh-key \
    --nodepool-name agentpool \
    --node-os-upgrade-channel None \
    --node-count 1 --kubernetes-version ${k8sVer} \
    --node-vm-size Standard_A4_v2 \
    --network-plugin azure \
    --enable-static-egress-gateway

# Bug: Create a Gateway Node pool
az aks nodepool add --cluster-name ${aks} -g ${rG} -n gatewaypool \
--mode gateway --node-count 1 --gateway-prefix-size 31

Output:

(StaticEgressGatewayInvalidGatewayNodeCount) Gateway agentpool gatewaypool is configured with invalid node count 1, exceeding max node count 2 according to public IPPrefix size /31 or fewer than 2.
Code: StaticEgressGatewayInvalidGatewayNodeCount
Message: Gateway agentpool gatewaypool is configured with invalid node count 1, exceeding max node count 2 according to public IPPrefix size /31 or fewer than 2.

Expected behavior
1 node should be allowed when setting gateway prefix with 31.

Screenshots
If applicable, add screenshots to help explain your problem.

Environment (please complete the following information):

  • Kubernetes version [e.g. 1.24.3] 1.31.1
  • Browser: Cloud Shell
  • CLI info:
{
 "azure-cli": "2.65.0",
 "azure-cli-core": "2.65.0",
 "azure-cli-telemetry": "1.1.0",
 "extensions": {
   "ai-examples": "0.2.5",
   "aks-preview": "9.0.0b7",
   "ml": "2.30.1",
   "ssh": "2.0.5"
 }
}
@JoeyC-Dev JoeyC-Dev added the bug label Oct 24, 2024
@JoeyC-Dev
Copy link
Author

I just realise that "or fewer than 2" at the end of the output.
Close as intended.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant