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]: bootstrapping - karpenter pod crash loopback due to panic no matches for kind "NodePool" in version #210

Open
1 task done
uptownhr opened this issue Jan 17, 2025 · 0 comments
Assignees
Labels
bug Something isn't working triage Needs to be triaged

Comments

@uptownhr
Copy link
Collaborator

Prior Search

  • I have already searched this project's issues to determine if a bug report has already been made.

What happened?

the karpenter pod is in a crash loopback due to the error panic: no matches for kind "NodePool" in version "karpenter.sh/v1"

Steps to Reproduce

Apply the kube_karpenter module

terragrunt.hcl

include "panfactum" {
  path   = find_in_parent_folders("panfactum.hcl")
  expose = true
}

terraform {
  source = include.panfactum.locals.pf_stack_source
}

dependency "cluster" {
  config_path = "../aws_eks"
}

inputs = {
  cluster_name  = dependency.cluster.outputs.cluster_name
  node_role_arn = dependency.cluster.outputs.node_role_arn
}

Relevant log output

│ {"level":"ERROR","time":"2025-01-17T18:16:01.902Z","logger":"controller","message":"failed to setup nodepool nodeclassref name indexer","commit":"3298d91" │
│ ,"error":"no matches for kind \"NodePool\" in version \"karpenter.sh/v1\""}                                                                                │
│ panic: no matches for kind "NodePool" in version "karpenter.sh/v1"                                                                                         │
│                                                                                                                                                            │
│ goroutine 1 [running]:                                                                                                                                     │
│ github.com/samber/lo.must({0x2fe5720, 0x40004306c0}, {0x0, 0x0, 0x0})                                                                                      │
│     github.com/samber/lo@v1.47.0/errors.go:53 +0x1cc                                                                                                       │
│ github.com/samber/lo.Must0(...)                                                                                                                            │
│     github.com/samber/lo@v1.47.0/errors.go:72                                                                                                              │
│ github.com/aws/karpenter-provider-aws/pkg/operator.NewOperator({0x3984e60, 0x40006638c0}, 0x4000754000)                                                    │
│     github.com/aws/karpenter-provider-aws/pkg/operator/operator.go:101 +0x11c                                                                              │
│ main.main()                                                                                                                                                │
│     github.com/aws/karpenter-provider-aws/cmd/controller/main.go:28 +0x28
@uptownhr uptownhr added bug Something isn't working triage Needs to be triaged labels Jan 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working triage Needs to be triaged
Projects
None yet
Development

No branches or pull requests

2 participants