-
Notifications
You must be signed in to change notification settings - Fork 4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
aws_eks: Error creating FargateCluster
in cn-north-1
due to CoreDnsComputeTypePatch
creation error
#26613
Comments
Looks like it's failing to install this in cn-north-1 ref: https://docs.aws.amazon.com/eks/latest/userguide/fargate-getting-started.html#fargate-gs-coredns |
I think I figured out the reason, or at least the solution. When I create this cluster, I use a subnet selection that includes the availability zones that have EKS capacity, When I change the subnet selection to explicitly be subnets that have VPC endpoints, I am able to finish creating the cluster without a problem. If these patches are indeed requiring internet access, would it be possible to give a warning at synth time stating that the selected subnets may not be suitable? I believe I've seen warnings like this before when creating another resource that I passed subnets into. Or otherwise, documenting that somewhere would be helpful. |
+1 |
I agree this is not region specific. I think currently coreDNS on EKS fargate needs a public subnet to be able to patch it. This is a bug which should be fixed |
I agree that it is not region specific and I support the idea from @Howlla . I created a natgateway in the public subnet of the vpc, adjusted my route table to point to natgateway-id, then I was able to avoid this error. This might help someone too. |
Describe the bug
Towards the end of a FargateCluster deployment, several resources fail to create, resulting in a rollback/delete.
Expected Behavior
I expect the cluster to be created smoothly, as I believe it is supported in this region and has successfully deployed on
us-east-1
with the same configuration.Current Behavior
When creating a resource with a logical ID
k8sclusterCoreDnsComputeTypePatch2EEF5C89
, it fails with the following status reason:Create for the last remaining necessary resources also fails because this one fails.
Reproduction Steps
Cluster creation code:
Possible Solution
Possibly trying to apply a patch that requires Global internet access, but needs to use a mirror in China? Other than that, not sure why something in China would fail.
Additional Information/Context
No response
CDK CLI Version
2.86.0
Framework Version
No response
Node.js Version
18.30
OS
Mac OS X
Language
Python
Language Version
3.9.15
Other information
No response
The text was updated successfully, but these errors were encountered: