Skip to content

Commit

Permalink
add security_context and fix alertmanager metrics port
Browse files Browse the repository at this point in the history
  • Loading branch information
Mtt6300 committed May 1, 2020
1 parent 80c8b72 commit b719139
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/alertmanager/alertmanager.tf
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,8 @@ resource "kubernetes_service" "service" {
namespace = var.monitoring_name_space
annotations = {
"prometheus.io/scrape" = "true"
"prometheus.io/path"= "/"
"prometheus.io/port" = "8080"
"prometheus.io/path"= "/metrics"
"prometheus.io/port" = "9093"
}

}
Expand Down
3 changes: 3 additions & 0 deletions modules/grafana/grafana.tf
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,9 @@ resource "kubernetes_deployment" "deployment" {
# node_selector = {
# type = "master"
# }
security_context {
fs_group = "472"
}

}
}
Expand Down
4 changes: 4 additions & 0 deletions modules/prometheus/prometheus.tf
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,10 @@ resource "kubernetes_deployment" "deployment" {
claim_name = "ptometheus-pvc"
}
}

security_context {
fs_group = "472"
}
automount_service_account_token = true
# node_selector = {
# type = "master"
Expand Down

0 comments on commit b719139

Please sign in to comment.