Skip to content

Commit

Permalink
Removed spaces in the backend name. Added workaround for issue #4. fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
garutilorenzo committed May 23, 2022
1 parent e11e458 commit de6d9e9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions k3slb.tf
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ resource "oci_network_load_balancer_backend_set" "k3s_kube_api_backend_set" {
port = var.kube_api_port
}

name = "k3s kube api backend"
name = "k3s_kube_api_backend"
network_load_balancer_id = oci_network_load_balancer_network_load_balancer.k3s_load_balancer.id
policy = "FIVE_TUPLE"
is_preserve_source = true
Expand All @@ -41,7 +41,7 @@ resource "oci_network_load_balancer_backend" "k3s_kube_api_backend" {
count = var.k3s_server_pool_size
backend_set_name = oci_network_load_balancer_backend_set.k3s_kube_api_backend_set.name
network_load_balancer_id = oci_network_load_balancer_network_load_balancer.k3s_load_balancer.id
name = format("%s:%s", data.oci_core_instance_pool_instances.k3s_servers_instances.instances[count.index].id, var.kube_api_port)
port = var.kube_api_port

target_id = data.oci_core_instance_pool_instances.k3s_servers_instances.instances[count.index].id
target_id = data.oci_core_instance_pool_instances.k3s_servers_instances.instances[count.index].id
}

0 comments on commit de6d9e9

Please sign in to comment.