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] AksEdgeQuickStartForAio.ps1 - aksedgeConfig is filled with wrong default variables for Azure IoT Operations #209

Open
tenthmile opened this issue Oct 21, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@tenthmile
Copy link

Describe the bug
The setup of AKS-Edge for Azure IoT Operations is setting up a machine with to little CPU Cores (and probably also RAM/Disk space).
The documentation on Prepare your Azure Arc-enabled Kubernetes cluster says it needs 8 CPU Cores, 16 GB of RAM and 52-GB free disk space.
The provided setup script of this repository however creates a machine with less than the required resources:

    "Machines": [
        {
            "LinuxNode": {
                "CpuCount": 4,
                "MemoryInMB": 10240,
                "DataSizeInGB": 40,
                "LogSizeInGB": 4
            }
        }
    ]

I can confirm that the CPU requirements are too low. When I tried to update a deployment, the pod didn't start because of insufficient cpu.
A describe on the pod showed this warning in the event-list:

Events:
  Type     Reason            Age        From               Message
  ----     ------            ----       ----               -------
  Warning  FailedScheduling  <invalid>  default-scheduler  0/1 nodes are available: 1 Insufficient cpu. preemption: 0/1 nodes are available: 1 No preemption victims found for incoming pod.

To Reproduce
Steps to reproduce the behavior:

  1. Run command .\AksEdgeQuickStartForAio.ps1 -SubscriptionId "<SUBSCRIPTION_ID>" -TenantId "<TENANT_ID>" -ResourceGroupName "<RESOURCE_GROUP_NAME>" -Location "<LOCATION>" -ClusterName "<CLUSTER_NAME>" -CustomLocationOid "<ARC_APP_OBJECT_ID>"
  2. Wait for the setup to finish
  3. Run kubectl describe node

Expected behavior
The capacity should match the recommended settings as on the Microsoft Learn page:
8 CPUs, 16 GB RAM, and 52-GB free disk space

Environment (please complete the following information):

  • AKS Edge Essentials Version: 1.8.202.0
  • Kubernetes version: v1.29.6+k3s-
  • Windows Host OS:
    • Edition: Microsoft Windows 11 Enterprise
    • Version: 10.0.22000.3260
    • Virtual Machine: CBL-Mariner/Linux
@tenthmile tenthmile added the bug Something isn't working label Oct 21, 2024
@SummerSmith
Copy link
Collaborator

The AIO documentation has been updated, and you can find minimum and recommended specs here. Please let us know if you find any other discrepancies. Thank you for the feedback!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants