terraform-kubernetes-installer icon indicating copy to clipboard operation
terraform-kubernetes-installer copied to clipboard

Add support for provisioning a cluster in an existing VCN (i.e. shared VCN)

Open jlamillan opened this issue 7 years ago • 4 comments

Currently, each cluster creates a brand new VCN, subnets, reoute tables, etc. for each cluster. It would be nice if we supported the ability to provision subsequent clusters into an an existing VCN.

jlamillan avatar Dec 15 '17 23:12 jlamillan

See also #77

jlamillan avatar Jan 04 '18 18:01 jlamillan

This is also needed https://github.com/oracle/terraform-kubernetes-installer/pull/168

garthy avatar Mar 20 '18 14:03 garthy

I want to use existing VCN features. is the enhancement ready for me to use? Thanks

beide avatar Apr 20 '18 14:04 beide

Workaround - Inside 'network/vcn' folder :

  1. Comment out resource "oci_core_virtual_network"
  2. Replace "oci_core_virtual_network.CompleteVCN.id" with "var.vz_vcn_id" and "oci_core_virtual_network.CompleteVCN.default_dhcp_options_id" with "var.vz_vcn_dhcpoptions_id" in securitylists.tf, subnets.tf, vcn.tf
  3. Define variables in variables.tf - `variable "vz_vcn_id" { default = "Put vcn ocid" }

variable "vz_vcn_dhcpoptions_id" { default = "Put dhcpoption ocid" } `

AdityaVishwekar avatar Mar 07 '19 16:03 AdityaVishwekar