Commit 1d2a933b authored by John Skarbek's avatar John Skarbek

Merge branch 'jts/lets-grab-a-thanos-query-ip' into 'master'

Let's assign static Interal IP address for thanos-query

See merge request !852
parents 10f90e10 c1284565
......@@ -1900,6 +1900,14 @@ resource "google_compute_address" "prometheus-gke" {
address_type = "INTERNAL"
}
# Reserved IP address for thanos-query
resource "google_compute_address" "thanos-query-gke" {
name = "thanos-query-gke-${var.environment}"
description = "thanos-query-gke-${var.environment}"
subnetwork = "${module.gitlab-gke.subnetwork_self_link}"
address_type = "INTERNAL"
}
resource "google_compute_router" "nat-router" {
name = "gitlab-gke"
network = "${module.network.self_link}"
......
......@@ -312,6 +312,14 @@ resource "google_compute_address" "prometheus-gke" {
address_type = "INTERNAL"
}
# Reserved IP address for thanos-query
resource "google_compute_address" "thanos-query-gke" {
name = "thanos-query-gke-${var.environment}"
description = "thanos-query-gke-${var.environment}"
subnetwork = "${module.gitlab-gke.subnetwork_self_link}"
address_type = "INTERNAL"
}
resource "google_compute_router" "nat-router" {
name = "gitlab-gke"
network = "${module.network.self_link}"
......
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