Giter Club home page Giter Club logo

Comments (4)

satyamodi avatar satyamodi commented on August 19, 2024

In create-efs.sh script, we are filtering the VPC based on the CIDR address assigned to vpc while creating the cluster in the variables.tf file.

variable.tf

variable "vpc_cidr" {
description = "The CIDR block for the VPC, e.g: 10.0.0.0/16"
default = "10.0.0.0/16"
}

create-efs.sh

VPD_ID=aws ec2 describe-vpcs --filters "Name=cidr,Values=$2" --query 'Vpcs[*].VpcId' --output text | xargs

ocp-install.tf

"./create-efs.sh ${var.region} ${var.vpc_cidr}",

We are expecting a unique CIDR address for each VPC in a particular aws region.
In your efs log file, it looks like there is more than one vpc with the same cidr address.

from cp4d-deployment.

Alan111S avatar Alan111S commented on August 19, 2024

That's correct. Each of our VPCs use 10.0.0.0/16.

So this is a restriction in your design? Since it is perfectly valid to re-use the same CIDR in different VPCs as they are effectively seperate isolated networks. So when you say 'We are expecting a unique CIDR address for each VPC in a particular aws region.', why are you setting that restriction?

from cp4d-deployment.

satyamodi avatar satyamodi commented on August 19, 2024

I have fixed the issue, now create-efs.sh won't search for vpc based on cidr address.

regarding the use of same CIDR in different VPCs, as per aws best practices:
"while you can create multiple VPCs with overlapping IP address ranges, doing so will prohibit you from connecting these VPCs to a common home network via the hardware VPN connection. For this reason we recommend using non-overlapping IP address ranges." https://aws.amazon.com/vpc/faqs/

from cp4d-deployment.

Alan111S avatar Alan111S commented on August 19, 2024

I see that there are some technical use cases where non-overlapping ranges might be important. Whether these use cases are relevant to setting up CPD, I'm not sure, but I'm willing to give you the benefit of the doubt ;)

In that case, it would be good to state in the documentation that the CIDR should be non-overlapping, as that information was not stated previously.

from cp4d-deployment.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.