-
Notifications
You must be signed in to change notification settings - Fork 183
-
Notifications
You must be signed in to change notification settings - Fork 183
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
Error":"missing required startup taint, karpenter.sh/unregistered" in the karpenter logs. #1635
Comments
This issue is currently awaiting triage. If Karpenter contributors determines this is a relevant issue, they will accept it by applying the The Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
The By the way, are you implementing an new provider for some infrastructure? Cloud you share more details about your works? |
No, I’m exploring about karpenter for my eks cluster that hosts GH runners. I’m using custom AMI. Could you please assist on how can I add the required taint karpenter.sh/unregistered via user data ? |
If you are using karpenter-aws-provider, the provider will do these things. If the aws provider doesn't do this, I think you should add an issue in https://github.com/aws/karpenter-provider-aws not here. |
From the karpenter upgrade guide- “ Karpenter now adds a karpenter.sh/unregistered:NoExecute taint to nodes in injected UserData when using alias in AMISelectorTerms or non-Custom AMIFamily. When using amiFamily: Custom, users will need to add this taint into their UserData, where Karpenter will automatically remove it when provisioning nodes”. Would be helpful if you could elaborate on how taints can be added to user data . |
Here is more documentation on adding taints: https://karpenter.sh/docs/concepts/nodeclasses/#specuserdata |
Description
Observed Behavior:
I have startup taints in my nodepool but I still see this error
{"level":"ERROR","time":"2024-09-04T20:20:36.965Z","logger":"controller","message":"Reconciler error","commit":"62a726c","controller":"nodeclaim.lifecycle","controllerGroup":"karpenter.sh","controllerKind":"NodeClaim","NodeClaim":{"name":"deployment-rqczg"},"namespace":"","name":"deployment-rqczg","reconcileID":"db521016-5e44-4c77-9352-f07bbb44197d","error":"missing required startup taint, karpenter.sh/unregistered"}
Expected Behavior:
This error should not coming up and the start up taints should be applied.
Reproduction Steps (Please include YAML):
apiVersion: karpenter.sh/v1
kind: NodePool
metadata:
name: deployment
spec:
template:
metadata:
labels:
type: DeploymentRunners
spec:
expireAfter: 19m
terminationGracePeriod: 20m
requirements:
- key: kubernetes.io/arch
operator: In
values: ["amd64"]
- key: kubernetes.io/os
operator: In
values: ["linux"]
- key: karpenter.sh/capacity-type
operator: In
values: ["on-demand"]
- key: karpenter.k8s.aws/instance-category
operator: In
values: ["c", "m", "r"]
- key: karpenter.k8s.aws/instance-generation
operator: Gt
values: ["2"]
- key: node.kubernetes.io/instance-type
operator: Exists
minValues: 10
nodeClassRef:
group: karpenter.k8s.aws
kind: EC2NodeClass
name: default
taints:
- key: "deployment_runners_workload"
value: "true"
effect: NoSchedule
startupTaints:
- key: karpenter.sh/unregistered
effect: NoSchedule
limits:
cpu: 1000
memory: 1000Gi
disruption:
consolidationPolicy: WhenEmptyOrUnderutilized
consolidateAfter: 20m
Versions:
The text was updated successfully, but these errors were encountered: