Skip to content

Commit

Permalink
Power VS: Enable global routing for cloud connection and specify dns
Browse files Browse the repository at this point in the history
Because the VPC will not always be in the same DC as the Power VS
service instance, we want to enable global routing to allow for
this. Additionally we want to specify the DNS server as it's
required until private cluster support lands.
  • Loading branch information
mjturek committed Sep 1, 2022
1 parent 924ac31 commit 6e8702c
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions data/data/powervs/cluster/power_network/pi_network.tf
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,17 @@ resource "ibm_pi_dhcp" "new_dhcp_service" {
count = var.pvs_network_name == "" ? 1 : 0
pi_cloud_instance_id = var.cloud_instance_id
pi_cloud_connection_id = data.ibm_pi_cloud_connection.cloud_connection.id
pi_dns_server = "1.1.1.1"
}

resource "ibm_pi_cloud_connection" "new_cloud_connection" {
count = var.cloud_conn_name == "" ? 1 : 0
pi_cloud_instance_id = var.cloud_instance_id
pi_cloud_connection_name = "cloud-con-${var.cluster_id}"
pi_cloud_connection_speed = 50
pi_cloud_connection_vpc_enabled = true
pi_cloud_connection_vpc_crns = [var.vpc_crn]
count = var.cloud_conn_name == "" ? 1 : 0
pi_cloud_instance_id = var.cloud_instance_id
pi_cloud_connection_name = "cloud-con-${var.cluster_id}"
pi_cloud_connection_speed = 50
pi_cloud_connection_global_routing = true
pi_cloud_connection_vpc_enabled = true
pi_cloud_connection_vpc_crns = [var.vpc_crn]
}

data "ibm_pi_cloud_connection" "cloud_connection" {
Expand Down

0 comments on commit 6e8702c

Please sign in to comment.