Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
gitlab-com
gitlab-com-infrastructure
Commits
c2d3cfd5
Commit
c2d3cfd5
authored
Mar 10, 2018
by
John Jarvis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kibana redirect node for gprd.
parent
20da2970
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
51 additions
and
1 deletion
+51
-1
environments/gprd/main.tf
environments/gprd/main.tf
+51
-1
No files found.
environments/gprd/main.tf
View file @
c2d3cfd5
...
...
@@ -498,7 +498,7 @@ resource "google_compute_firewall" "monitoring" {
}
source_ranges
=
[
"0.0.0.0/0"
]
target_tags
=
[
"performance"
,
"prometheus"
]
target_tags
=
[
"kibana"
,
"prometheus-app"
,
"performance"
,
"prometheus"
]
}
module
"performance"
{
...
...
@@ -551,6 +551,56 @@ module "prometheus" {
oauth2_client_secret
=
"
${
var
.
oauth2_client_secret_prometheus
}
"
}
module
"prometheus-app"
{
bootstrap_version
=
3
subnetwork_name
=
"
${
google_compute_subnetwork
.
monitoring
.
name
}
"
attach_data_disk
=
true
data_disk_size
=
1000
data_disk_type
=
"pd-standard"
chef_provision
=
"
${
var
.
chef_provision
}
"
chef_run_list
=
"
\"
role[
${
var
.
environment
}
-infra-prometheus-app]
\"
"
dns_zone_name
=
"
${
var
.
dns_zone_name
}
"
environment
=
"
${
var
.
environment
}
"
machine_type
=
"
${
var
.
machine_types
[
"monitoring"
]
}
"
name
=
"prometheus-app"
project
=
"
${
var
.
project
}
"
region
=
"
${
var
.
region
}
"
source
=
"../../modules/google/monitoring"
tier
=
"inf"
persistent_disk_path
=
"/opt/prometheus"
gitlab_com_zone_id
=
"
${
var
.
gitlab_com_zone_id
}
"
cert_link
=
"projects/gitlab-production/global/sslCertificates/gprd-wildcard"
service_port
=
"9090"
service_path
=
"/graph"
oauth2_client_id
=
"
${
var
.
oauth2_client_id_prometheus
}
"
oauth2_client_secret
=
"
${
var
.
oauth2_client_secret_prometheus
}
"
}
module
"kibana"
{
bootstrap_version
=
3
subnetwork_name
=
"
${
google_compute_subnetwork
.
monitoring
.
name
}
"
attach_data_disk
=
true
data_disk_size
=
100
data_disk_type
=
"pd-standard"
chef_provision
=
"
${
var
.
chef_provision
}
"
chef_run_list
=
"
\"
role[
${
var
.
environment
}
-infra-kibana]
\"
"
dns_zone_name
=
"
${
var
.
dns_zone_name
}
"
environment
=
"
${
var
.
environment
}
"
machine_type
=
"
${
var
.
machine_types
[
"monitoring"
]
}
"
name
=
"kibana"
project
=
"
${
var
.
project
}
"
region
=
"
${
var
.
region
}
"
source
=
"../../modules/google/monitoring"
tier
=
"inf"
persistent_disk_path
=
"/opt"
gitlab_com_zone_id
=
"
${
var
.
gitlab_com_zone_id
}
"
cert_link
=
"projects/gitlab-production/global/sslCertificates/gprd-wildcard"
service_port
=
"80"
service_path
=
"/login"
oauth2_client_id
=
"
${
var
.
oauth2_client_id_prometheus
}
"
oauth2_client_secret
=
"
${
var
.
oauth2_client_secret_prometheus
}
"
}
##################################
#
# Deploy
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment