Commit 76a026a9 authored by Daniele Valeriani's avatar Daniele Valeriani
Browse files

Merge branch 'jarv/hc-and-ports' into 'master'

Commenting out healthchecks and ports.

See merge request !233
parents 3c6dada1 915cee6a
......@@ -4,8 +4,9 @@ resource "google_compute_forwarding_rule" "fe_forwarding_rule_http" {
region = "${var.region}"
target = "${google_compute_target_pool.fe_lb_http_pool.self_link}"
load_balancing_scheme = "EXTERNAL"
ports = ["80"]
ip_address = "${google_compute_address.fe_external_ip.address}"
// ports = ["80"]
// ip_address = "${google_compute_address.fe_external_ip.address}"
}
resource "google_compute_target_pool" "fe_lb_http_pool" {
......
......@@ -4,8 +4,9 @@ resource "google_compute_forwarding_rule" "fe_forwarding_rule_https" {
region = "${var.region}"
target = "${google_compute_target_pool.fe_lb_https_pool.self_link}"
load_balancing_scheme = "EXTERNAL"
ports = ["443"]
ip_address = "${google_compute_address.fe_external_ip.address}"
// ports = ["443"]
// ip_address = "${google_compute_address.fe_external_ip.address}"
}
resource "google_compute_target_pool" "fe_lb_https_pool" {
......@@ -16,11 +17,14 @@ resource "google_compute_target_pool" "fe_lb_https_pool" {
session_affinity = "NONE"
instances = ["${var.fe_https_instances}"]
/*
health_checks = [
"${google_compute_https_health_check.fe_lb_https_health_check.name}",
]
*/
}
/*
resource "google_compute_https_health_check" "fe_lb_https_health_check" {
project = "${var.project}"
name = "fe-lb-https-health-check"
......@@ -32,3 +36,5 @@ resource "google_compute_https_health_check" "fe_lb_https_health_check" {
healthy_threshold = 2
unhealthy_threshold = 2
}
*/
......@@ -4,8 +4,9 @@ resource "google_compute_forwarding_rule" "fe_forwarding_rule_ssh" {
region = "${var.region}"
target = "${google_compute_target_pool.fe_lb_ssh_pool.self_link}"
load_balancing_scheme = "EXTERNAL"
ports = ["22"]
ip_address = "${google_compute_address.fe_external_ip.address}"
// ports = ["22"]
// ip_address = "${google_compute_address.fe_external_ip.address}"
}
resource "google_compute_target_pool" "fe_lb_ssh_pool" {
......@@ -16,11 +17,14 @@ resource "google_compute_target_pool" "fe_lb_ssh_pool" {
session_affinity = "NONE"
instances = ["${var.fe_ssh_instances}"]
/*
health_checks = [
"${google_compute_health_check.fe_lb_ssh_health_check.name}",
]
*/
}
/*
resource "google_compute_health_check" "fe_lb_ssh_health_check" {
project = "${var.project}"
name = "fe-lb-ssh-health-check"
......@@ -33,3 +37,5 @@ resource "google_compute_health_check" "fe_lb_ssh_health_check" {
port = "22"
}
}
*/
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment