Commit c1284565 authored by John Skarbek's avatar John Skarbek

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

* In order to provide a data source to grafana for thanos-query, we'll
need a statically assigned IP Address for which we can utilize
* This IP address will be assigned to the Service object for thanos
query
parent 10f90e10
......@@ -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