-
Notifications
You must be signed in to change notification settings - Fork 839
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
Karpenter controller can't schedule/add any nodes #4698
Comments
This is my provisioner YAML. apiVersion: v1
items:
- apiVersion: karpenter.sh/v1alpha5
kind: Provisioner
metadata:
annotations:
karpenter.sh/provisioner-hash: "1599235016353422174"
kubectl.kubernetes.io/last-applied-configuration: |
{"apiVersion":"karpenter.sh/v1alpha5","kind":"Provisioner","metadata":{"labels":{"app.kubernetes.io/managed-by":"pulumi"},"name":"default"},"spec":{"providerRef":{"name":"aws"},"requirements":[{"key":"karpenter.k8s.aws/instance-categor
y","operator":"In","values":["m","r","c"]},{"key":"karpenter.k8s.aws/instance-cpu","operator":"In","values":["4","8","16","32"]}]}}
creationTimestamp: "2023-09-26T09:10:55Z"
generation: 1
labels:
app.kubernetes.io/managed-by: pulumi
name: default
resourceVersion: "130107"
uid: a7b41239-623d-4a50-a040-dfcdae716968
spec:
providerRef:
name: aws
requirements:
- key: karpenter.k8s.aws/instance-category
operator: In
values:
- m
- r
- c
- key: karpenter.k8s.aws/instance-cpu
operator: In
values:
- "4"
- "8"
- "16"
- "32"
- key: kubernetes.io/os
operator: In
values:
- linux
- key: kubernetes.io/arch
operator: In
values:
- amd64
- key: karpenter.sh/capacity-type
operator: In
values:
- on-demand
kind: List
metadata:
resourceVersion: "" These are my logs: The rest of the logs are pretty much the same.
|
What does the node template look like? |
Seeing the same thing in one of our clusters. All 20 clusters have a pretty much identical configuration yet this one refuses to launch any nodes. Provisioner:
|
What does the node template look like and can you show the provisioner's status (status section from |
@tzneal please accept my apologies! - It would appear the helm chart we use to install our custom nodetemplate had been failing silently in CI and there was no node template present! |
No problem, we should have a much better indicator of the problem in this case. I'll fix that. |
Hey thanks, the problem was with my providerRef. I wasn't specifying the correct one. Would be great to have a better error message here |
@tzneal I do have the same error, this is odd
|
@hassammustafaa did you managed to solve the error?I have the same problem and it's driving me crazy... |
Yes, I did, can you share your AWSNodeTemplate and output of |
I've just realize that i had a typo...:D |
I had the same issue. I resolved it by adding the right tag to the subnet and security group. |
My SG and Subnets tag whas missing the last character in "karpenter.sh/discovery" |
Description
Observed Behavior:
Karpenter controller can't schedule any nodes in my cluster. The following are the logs I see in the controller pod:
Expected Behavior:
Karpenter to have added new nodes, but it didn't.
Reproduction Steps (Please include YAML):
Versions:
kubectl version
):The text was updated successfully, but these errors were encountered: