aws-ia / terraform-aws-eks-blueprints

Configure and deploy complete EKS clusters.
https://aws-ia.github.io/terraform-aws-eks-blueprints/
Apache License 2.0
2.66k stars 1.42k forks source link

karpenter-mng - tolerations: is not defined in the schema and the schema does not allow additional properties #1963

Closed iocron closed 1 month ago

iocron commented 2 months ago

Description

Using the pattern "karpenter-mng" (terraform init... terraform apply -target="module.eks" -auto-approve) results in: tolerations: is not defined in the schema and the schema does not allow additional properties

Versions

Reproduction Code [Required]

Can be found at: https://github.com/aws-ia/terraform-aws-eks-blueprints/tree/main/patterns/karpenter-mng

Steps to reproduce the behavior: I just followed the official getting-started steps: https://aws-ia.github.io/terraform-aws-eks-blueprints/getting-started/

terraform init # works
terraform apply -target="module.vpc" -auto-approve # works
terraform apply -target="module.eks" -auto-approve # FAILS with ERROR message provided!
Error: creating EKS Add-On (ex-karpenter-mng:coredns): operation error EKS: CreateAddon, https response error StatusCode: 400, RequestID: 193a2e4b-b99b-43e3-b025-a8003e08882b, InvalidParameterException: ConfigurationValue provided in request is not supported: Json schema validation failed with error: [$.tolerations: is not defined in the schema and the schema does not allow additional properties]
│
│   with module.eks.aws_eks_addon.this["coredns"],
│   on .terraform/modules/eks/main.tf line 498, in resource "aws_eks_addon" "this":
│  498: resource "aws_eks_addon" "this" {

Expected behavior

module.eks should work as described from the docs.

Actual behavior

The tolerations schema error happened.

bryantbiggs commented 1 month ago

Are you deploying the pattern as is or are you modifying the values?

iocron commented 3 weeks ago

Which values exactly? I've only modified 2 vars (regarding my git log): cluster_version = "1.24" # eks.tf region = "eu-west-1" # main.tf

I think I've also tried the original values before, and it failed, but I can't remember for certain.