Skip to content

Error during terragrunt run-all apply: "Error: karpenter/private failed to fetch resource from kubernetes: the server could not find the requested resource" #365

@vb0om

Description

@vb0om

Prerequisites

Please answer the following questions for yourself before submitting an issue. YOU MAY DELETE THE PREREQUISITES SECTION.

  • I am running the latest version
  • I checked the documentation and found no answer
  • I checked to make sure that this issue has not already been filed

Expected Behavior

Create all resources that were described in the code

Current Behavior

Running command terragrunt apply in directory karpenter finished with error.

Failure Information (for bugs)

When running terragrunt apply, I encountered the following error during the execution of the kubectl_manifest resource.

kubectl_manifest.ec2nodeclass_public[0]: Creating...
kubectl_manifest.ec2nodeclass_private[0]: Creating...
╷
│ Error: karpenter/private failed to fetch resource from kubernetes: the server could not find the requested resource
│
│   with kubectl_manifest.ec2nodeclass_private[0],
│   on main.tf line 63, in resource "kubectl_manifest" "ec2nodeclass_private":
│   63: resource "kubectl_manifest" "ec2nodeclass_private" {
│
╵
╷
│ Error: karpenter/public failed to fetch resource from kubernetes: the server could not find the requested resource
│
│   with kubectl_manifest.ec2nodeclass_public[0],
│   on main.tf line 95, in resource "kubectl_manifest" "ec2nodeclass_public":
│   95: resource "kubectl_manifest" "ec2nodeclass_public" {

Steps to Reproduce

  1. step 1 - clone code to local computer
  2. step 2 - prepare infrastructure by deploying VPC, EKS cluster
  3. step 3 - deploy karpenter with current settings

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions