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

NodeClaim namespace hardcoded to kube-system #17

Closed
miguelvidex opened this issue Sep 13, 2024 · 4 comments
Closed

NodeClaim namespace hardcoded to kube-system #17

miguelvidex opened this issue Sep 13, 2024 · 4 comments

Comments

@miguelvidex
Copy link

miguelvidex commented Sep 13, 2024

Fail to get info about the NodeClaims

Error:

failed to list *v1beta1.NodeClaim: conversion webhook for karpenter.sh/v1, Kind=NodeClaim failed: Post "https://karpenter.kube-system.svc:8443/conversion/karpenter.sh?timeout=30s": service "karpenter" not found

Reason:

NodeClaim namespace hardcoded to kube-system, while here in the blueprints the service is running on karpenter namespace:

conversion:
    strategy: Webhook
    webhook:
      conversionReviewVersions:
        - v1beta1
        - v1
      clientConfig:
        service:
          name: karpenter
          namespace: kube-system
          port: 8443
@jakeskyaws
Copy link
Contributor

Thanks for raising an issue. After reviewing, it seems this issue may be related to the one mentioned in AWS Karpenter Provider Issue #6818. Based on this, it doesn’t appear to be a blueprint issue specifically.

We recommend upgrading to Karpenter 1.0.2, as this version includes fixes that might resolve the problem you're encountering.

Additionally, if you could provide more information on how to replicate the error (e.g., specific steps, configurations, or environment details), we’d be happy to take some time to test the upgrade and confirm whether it resolves the issue.

@chrismld
Copy link
Contributor

@miguelvidex are you seeing this error when using eks-node-viewer? We've seen that error when using that tool. The team has a new release to fix that problem. I'd suggest to install the v0.7.0 of that tool and try again.

Please let us know if that fixes your problem.

Thanks!!

@stemann
Copy link

stemann commented Oct 5, 2024

This might only vaguely related, but I encountered a similar issue using the Karpenter MNG blueprint, which instructs to disable the webhook in the Karpenter Helm chart values YAML:

    webhook:
      enabled: false

Which caused issues when applying the NodePool manifest/yaml - failing to find the karpenter service with the same error as above.

Removing webhook.enabled: false (and deploying karpenter to the kube-system namespace) resolved the issue.

@chrismld
Copy link
Contributor

chrismld commented Nov 5, 2024

closing it as we haven't heard back from @miguelvidex ... but feel to re-open it if needed.

@chrismld chrismld closed this as completed Nov 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants