forked from cookielab/terraform-kubernetes-dashboard
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlocal.tf
23 lines (19 loc) · 1.04 KB
/
local.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
locals {
kubernetes_resources_labels = merge({
"cookielab.io/terraform-module" = "kube-dashboard",
}, var.kubernetes_resources_labels)
kubernetes_deployment_labels_selector = {
"cookielab.io/application" = "kubernetes-dashboard",
"cookielab.io/process" = "bootstrap",
"cookielab.io/unit" = "dashboard",
}
kubernetes_deployment_labels_selector_metrics = {
"cookielab.io/application" = "kubernetes-dashboard",
"cookielab.io/process" = "bootstrap",
"cookielab.io/unit" = "metrics-scraper",
}
kubernetes_deployment_labels = merge(local.kubernetes_deployment_labels_selector, local.kubernetes_resources_labels)
kubernetes_deployment_labels_metrics = merge(local.kubernetes_deployment_labels_selector_metrics, local.kubernetes_resources_labels)
kubernetes_deployment_image = "${var.kubernetes_deployment_image_registry}:${var.kubernetes_deployment_image_tag}"
kubernetes_deployment_metrics_scraper_image = "${var.kubernetes_deployment_metrics_scraper_image_registry}:${var.kubernetes_deployment_metrics_scraper_image_tag}"
}