Skip to content

Commit

Permalink
fix(eks-public): add ingress so the cluster can communicate with the …
Browse files Browse the repository at this point in the history
…ingress controller

Fix following error when deploying an exposed service in eks-public:

> Error: release artifact-caching-proxy failed, and has been uninstalled due to atomic being set: Internal error occurred: failed calling webhook "validate.nginx.ingress.kubernetes.io": Post "https://public-nginx-ingress-ingress-nginx-controller-admission.public-nginx-ingress.svc:443/networking/v1/ingresses?timeout=10s": context deadline exceeded

Ref: kubernetes/ingress-nginx#5401 (comment)
  • Loading branch information
lemeurherve committed Oct 11, 2022
1 parent c5d77c7 commit a7210a0
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions eks-public-cluster.tf
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,15 @@ module "eks-public" {
to_port = 9443
source_cluster_security_group = true
description = "Allow access from control plane to webhook port of AWS load balancer controller"
},
# nginx-ingress requires the cluster to communicate with the ingress controller
cluster_to_node = {
description = "Cluster to ingress-nginx webhook"
protocol = "-1"
from_port = 8443
to_port = 8443
type = "ingress"
source_cluster_security_group = true
}
}

Expand Down

0 comments on commit a7210a0

Please sign in to comment.