kz8s/tack

Existing VPC Config Clarification

bkosick opened this issue · 1 comments

I would like some clarification, on the existing VPC setup... in the docs, it says that the etcd servers should be in the public subnet, but after quadrupal checking my config:

etcd-ips = "172.20.20.10,172.20.20.11,172.20.20.12"
public: subnet-6dc85525: 172.20.20.0/24
private: subnet-e6c954ae: 172.20.21.0/24

Editing the Make file to match ETCD_IPS

I get.

Error applying plan:

3 error(s) occurred:

  • module.etcd.aws_instance.etcd[2]: 1 error(s) occurred:

  • aws_instance.etcd.2: Error launching source instance: InvalidParameterValue: Address 172.20.20.12 does not fall within the subnet's address range
    status code: 400, request id: fd74d274-02f8-49af-b2cc-aae0a7dc054a

  • module.etcd.aws_instance.etcd[0]: 1 error(s) occurred:

  • aws_instance.etcd.0: Error launching source instance: InvalidParameterValue: Address 172.20.20.10 does not fall within the subnet's address range
    status code: 400, request id: a85b6299-fa31-4071-9312-560980a921f6

  • module.etcd.aws_instance.etcd[1]: 1 error(s) occurred:

  • aws_instance.etcd.1: Error launching source instance: InvalidParameterValue: Address 172.20.20.11 does not fall within the subnet's address range
    status code: 400, request id: 978a85cc-697e-45b9-a3bb-e4c15e1e6aca

Also, what visibility zones (public/private) should the following be in?
CIDR_VPC
CIDR_PODS
CIDR_SERVICE_CLUSTER
K8S_SERVICE_IP
K8S_DNS_IP
PKI_IP

Thanks,
Brian

Never mind I figured it out, you need at minimum 2 (AWS subnets) and 2 in unassigned space