Skip to content
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

Add aws_eks_cluster.default[*].kubernetes_network_config[0].service_ipv4_cidr to output #226

Closed
z0rc opened this issue May 13, 2024 · 0 comments

Comments

@z0rc
Copy link
Contributor

z0rc commented May 13, 2024

Describe the Feature

I need to know what service CIDR was automatically picked up by EKS when creating IPv4 cluster.

Expected Behavior

Module provides output eks_cluster_ipv4_service_cidr, just like eks_cluster_ipv6_service_cidr.

Use Case

IPv4 CIDR is needed for calculating cluster-dns-ip (cidrhost(module.eks.eks_cluster_ipv4_service_cidr, 10)) when overriding it in Bottlerocket config with additional addresses when setting up node-local-dns.

Effectively I need to set cluster-dns-ip to something like 169.254.20.10,172.20.0.10, where first ip is node-local-dns and is static, second is automatically computed based on service cidr.

Describe Ideal Solution

Module provides Service IPv4 CIDR in its output.

Alternatives Considered

Adding data resource aws_eks_cluster to root module to fetch this info outside of module cloudposse/eks-cluster/aws.

Additional Context

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant