Azure / karpenter-provider-azure

AKS Karpenter Provider
Apache License 2.0
376 stars 56 forks source link

Karpenter not provisioning #506

Open perezmark opened 7 hours ago

perezmark commented 7 hours ago

Version

Karpenter Version: v0.0.0

Kubernetes Version: v1.30.4

Expected Behavior

Im expecting to auto scale the nodes for testing, i just deployed a simple nginx

Actual Behavior

no nodes provisioned and no events received

Steps to Reproduce the Problem

i just follow the instruction on the documentation page https://learn.microsoft.com/en-us/azure/aks/node-autoprovision?tabs=azure-cli except its a private cluster

then deployed 500 replicas of nginx to try to scale, no events happend and stuck on pending because theres in no user ndoes

Resource Specs and Logs

Bash kubectl create deployment nginx-deployment \ --image=nginx:latest \ --replicas=3 \ --dry-run=client -o yaml > nginx-deployment.yaml Use code with caution.

Then, edit the nginx-deployment.yaml file and add the following nodeSelector under spec.template.spec:

YAML spec:

... other deployment configurations ...

template: spec:

... other pod configurations ...

  nodeSelector:
    kubernetes.io/arch: amd64 
    kubernetes.io/os: linux

Community Note

Bryce-Soghigian commented 3 hours ago

except its a private cluster

Just saw this, IIRC karpenter today does not work with private clusters.

perezmark commented 2 hours ago

except its a private cluster

Just saw this, IIRC karpenter today does not work with private clusters.

What do you mean by IIRC @Bryce-Soghigian

Bryce-Soghigian commented 2 hours ago

"If I recall correctly"

perezmark commented 1 hour ago

"If I recall correctly"

I tested to provision a public cluster and it worked, any work around with this so that the managed karpenter can reach the a private cluster? @Bryce-Soghigian