Skip to content

Error during terragrunt run-all apply: "no endpoints available for service 'aws-load-balancer-controller-webhook-service'" #363

@armenmelkonyan90

Description

@armenmelkonyan90

When running terragrunt run-all apply, I encountered the following error during the execution of the helm_release resource:

* Failed to execute "terraform apply -auto-approve -input=false" in ./ACCOUNT_ID/us-east-1/demo/k8s-addons/.terragrunt-cache/u9zxPMQmf1jb0d26KapozttTaiw/PK_OxUbkN5ko3bd2Qj4q70bVcaM/k8s-addons
  ╷
  │ Error: 1 error occurred:
  │     * Internal error occurred: failed calling webhook "mservice.elbv2.k8s.aws": failed to call webhook: Post "https://aws-load-balancer-controller-webhook-service.aws-load-balancer-controller.svc:443/mutate-v1-service?timeout=10s": no endpoints available for service "aws-load-balancer-controller-webhook-service"
  │ 
  │   with helm_release.external_secrets[0],
  │   on eks-external-secrets.tf line 143, in resource "helm_release" "external_secrets":
  │  143: resource "helm_release" "external_secrets" {
  │ 
  ╵

After running terragrunt run-all apply a second time, the error no longer occurred, and Terragrunt replaced the AWS Load Balancer Controller.

Steps to Reproduce
Run terragrunt run-all apply to provision resources, including the AWS Load Balancer Controller.
Observe the failure due to missing endpoints for aws-load-balancer-controller-webhook-service.
Run terragrunt run-all apply again, and note that the error does not occur in subsequent runs.

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