karpenter-provider-aws: Error when creating provisioner - failed calling webhook
Version
Karpenter: v0.5.4
Kubernetes: v1.21.5
Actual Behavior
Can’t install provisioner. When I try to apply the provisioner I get this error:
Error from server (InternalError): error when creating "provisioner.yaml": Internal error occurred: failed calling webhook "defaulting.webhook.provisioners.karpenter.sh": Post "https://karpenter-webhook.karpenter.svc:443/default-resource?timeout=10s": context deadline exceeded
I don’t have ERROR logs neither in the pod of the controller like the one of the webhook.
Steps to Reproduce the Problem
I am following this documentation -> https://karpenter.sh/docs/getting-started-with-terraform/
Resource Specs and Logs
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Reactions: 7
- Comments: 29 (13 by maintainers)
@prashantbhrgv
Try adding these:
Hello, First of all thanks, it helped me figured out my problem, but important warning here when you specify protocol = “all” acccording to security group rule doc
It works for @prashantbhrgv because it openned all ports. So without specifying “all”, you have to check your webhook endpoints as @alekc said and open the right ports. Working with alb controller and karpenter everything works fine with this config for me :
Are you sure that it’s not a security group issue? One of the most annoying “improvement” terraform-eks-module brought in v18 is that by default nodes cannot speak one with another because Sg are very restrictive (see https://github.com/terraform-aws-modules/terraform-aws-eks/issues/1748), especially https://github.com/terraform-aws-modules/terraform-aws-eks/issues/1748#issuecomment-1020226274
I would suggest to try with v17 as suggested in the docs first if possible.
Still relevant and still appears on both v0.19.3 and v0.20.0.
Thanks for sharing this. It worked 👍🏻 . Just one question. Might be naive.
How do you determine which ports/rules need to be added? in case I face a similar issue in the future.
@alekc It was that! Thanks a lot!