-
Notifications
You must be signed in to change notification settings - Fork 979
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
unable to retrieve the complete list of server APIs: karpenter.sh/v1alpha5 #5425
Comments
Which version of Karpenter are you running? You typically see this error when you don't have the Machine CRD installed, which means that the controller can't register the indexer that it needs to start running. |
public.ecr.aws/karpenter/controller:v0.32.3@sha256:afa0d0fd5ac375859dc3d239ec992f197cdf01f6c8e3413e3845a43c2434621e is the version being used |
You need the Machine CRD installed when you are running v0.32.x. This should already be included in the chart. How are you installing Karpenter? |
It's hard for me to parse through the script to see what it's doing. Are you installing all of the CRDs that are part of the chart in the |
ya I am installing crds using this command helm template karpenter "${SCRIPTPATH}/karpenter-provider-aws-${VERSION#v}/charts/karpenter-crd" --namespace karpenter >| "${CRDMANIFEST}" it would install everything under https://github.com/aws/karpenter-provider-aws/tree/main/charts/karpenter-crd |
I think the difference here is that you need it to install the CRDs based on the version that you are on. If you are installing from |
sure do we also need to install chart we had here https://github.com/aws/karpenter-provider-aws/blob/v0.32.4/charts/karpenter-crd/Chart.yaml |
used this command to execute helm template karpenter "${SCRIPTPATH}/karpenter-provider-aws-0.32.4/charts/karpenter-crd/templates" --namespace karpenter >| "${CRDMANIFEST}" it errored out saying Error: Chart.yaml file is missing |
I think based on your script, you need to move up one directory so the |
I successfully managed and installed versioned CRDs (Custom Resource Definitions). However, this time I'm encountering a different error. Any ideas on what might be causing this new issue? ERROR: webhook.ValidationWebhook","message":"Reconcile error","commit":"3a61217","knative.dev/traceid":"454a0c6a-e510-4d5f-a0df-3fda8b797e9b","knative.dev/key":"validation.webhook.karpenter.sh","duration":"55.054059ms","error":"failed to update webhook: Operation cannot be fulfilled on validatingwebhookconfigurations.admissionregistration.k8s.io "validation.webhook.karpenter.sh": the object has been modified; please apply your changes to the latest version and try again {"level":"DEBUG","time":"2024-01-05T15:20:37.358Z","logger":"controller.provisioner","message":"ignoring pod, configured to not run on a Karpenter provisioned node via karpenter.sh/provisioner-name DoesNotExist and karpenter.sh/nodepool DoesNotExist requirements","commit":"3a61217","pod":"karpenter/karpenter-8c994fc78-tw9pp"} Thanks ! |
These are both expected. The first one is a transient error which is discussed here: #2902. The other one is just telling you that a Karpenter deployment can't run on capacity that is launched by Karpenter. This is to just keep you from having a cyclical dependency where you have Karpenter deployed to infra, but then the infra that Karpenter is running on goes bad and Karpenter can't recover itself because it manages the infra that it's running on. If you are seeing that error continually, that means that you don't have enough static capacity (we recommend using MNG or Fargate) to run the Karpenter controller. |
is there any documentation for using fargate to run karpenter.if we pass reource limits in manifest file will it resolve the issue without fargate below is configuration
|
Are you using MNG or Fargate? If MNG, how many nodes are provisioned as part of your MNG? |
we are using managed node groups and currently we have two node groups provisioned |
I was able to fix all the errors mentioned above, and the pods are running fine. However, when I tried to test Karpenter by deploying an app, seeing nodepool errors can you point me to any reference for defining nodepools . {"level":"INFO","time":"2024-01-11T01:16:11.699Z","logger":"controller","message":"Starting workers","commit":"3a61217","controller":"nodeclass","controllerGroup":"karpenter.k8s.aws","controllerKind":"EC2NodeClass","worker count":10} |
Hi @akunduru9 |
panic: failed to setup machine provider id indexer: failed to get API group resources: unable to retrieve the complete list of server APIs: karpenter.sh/v1alpha5: the server could not find the requested resource
goroutine 1 [running]:
github.com/samber/lo.must({0x25f73e0, 0xc0005f9800}, {0xc000b0f730, 0x1, 0x1})
github.com/samber/[email protected]/errors.go:51 +0x1c5
github.com/samber/lo.Must0(...)
github.com/samber/[email protected]/errors.go:72
github.com/aws/karpenter-core/pkg/operator.NewOperator()
github.com/aws/[email protected]/pkg/operator/operator.go:182 +0x16ce
main.main()
github.com/aws/karpenter/cmd/controller/main.go:33 +0x25
I am using latest tag of karpenter helm charts and EKS version we have is 1.28
The text was updated successfully, but these errors were encountered: